Skip to content

Commit

Permalink
fixing oauth login (#254)
Browse files Browse the repository at this point in the history
## Изменения
Починил условие проверки токена пользователя в роутере auth
  • Loading branch information
BatuevIO authored Oct 19, 2024
1 parent 9cd4912 commit 83e4908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const useProfileStore = defineStore('profile', () => {
}
}

const isUserLogged = computed(() => token.value !== null);
const isUserLogged = computed(() => !!token.value);

const isAdmin = computed(() => tokenScopes.value?.includes(scopename.webapp.admin.show));

Expand Down

0 comments on commit 83e4908

Please sign in to comment.