Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
fix: disable API fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
NamesMT committed May 6, 2024
1 parent ec07e7b commit 3677f6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/frontend/plugins/02.auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ export default defineNuxtPlugin(async () => {
const { $apiClient } = useNuxtApp()
const authApi = $apiClient.api.auth

const health = await hcText(authApi.health.$get()).catch(() => false)
const health = false
// const health = await hcText(authApi.health.$get()).catch(() => false)
const isLoggedIn = health && await hcJson(authApi.isAuth.$get())
const profile = isLoggedIn ? await hcJson(authApi.profile.$get()) : null

Expand Down

0 comments on commit 3677f6f

Please sign in to comment.