mirror of
https://github.com/langgenius/dify.git
synced 2026-02-24 18:05:11 +00:00
fix: signin page stuck on loading when refresh token valid but access token expired (#30675)
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -221,13 +221,12 @@ export const useIsLogin = () => {
|
||||
await get('/account/profile', {}, {
|
||||
silent: true,
|
||||
})
|
||||
}
|
||||
catch (e: any) {
|
||||
if (e.status === 401)
|
||||
return { logged_in: false }
|
||||
return { logged_in: true }
|
||||
}
|
||||
return { logged_in: true }
|
||||
catch {
|
||||
// Any error (401, 500, network error, etc.) means not logged in
|
||||
return { logged_in: false }
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user