We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01f4213 commit 23f5bd5Copy full SHA for 23f5bd5
1 file changed
apps/frontend/app/plugins/auth.ts
@@ -27,7 +27,7 @@ export default defineNuxtPlugin({
27
}) as Reactive<AuthState>
28
29
async function refreshAuth() {
30
- const authState = await hcParse(authApi.authState.$get())
+ const authState = await hcParse(authApi.authState.$get()).catch(() => null)
31
32
if (authState?.profile) {
33
auth.loggedIn = true
0 commit comments