Skip to content

Commit 23f5bd5

Browse files
committed
fix: build fix due to error fetch
1 parent 01f4213 commit 23f5bd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/frontend/app/plugins/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default defineNuxtPlugin({
2727
}) as Reactive<AuthState>
2828

2929
async function refreshAuth() {
30-
const authState = await hcParse(authApi.authState.$get())
30+
const authState = await hcParse(authApi.authState.$get()).catch(() => null)
3131

3232
if (authState?.profile) {
3333
auth.loggedIn = true

0 commit comments

Comments
 (0)