mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-01-18 14:14:50 +08:00
fix login not working without a refresh when fake user is enabled
This commit is contained in:
parent
e4e5644d02
commit
a068692172
@ -11,7 +11,8 @@ export default async ({ app: { $cookies }, $auth, $api, store, redirect }: Conte
|
||||
path: '/',
|
||||
});
|
||||
redirect(returnRoute);
|
||||
} else if ($cookies.get('HangarAuth_REFRESH', { parseJSON: false })) {
|
||||
}
|
||||
if ($cookies.get('HangarAuth_REFRESH', { parseJSON: false })) {
|
||||
const token = await $api.getToken(true);
|
||||
if (token != null) {
|
||||
if (store.state.auth.authenticated) {
|
||||
|
Loading…
Reference in New Issue
Block a user