Skip to content

Commit

Permalink
fix: getMe init with check query auth
Browse files Browse the repository at this point in the history
  • Loading branch information
LorexIQ committed Nov 23, 2023
1 parent 26b202f commit c678642
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ export default defineNuxtPlugin(async () => {

try {
if (options.token.queryKey) await checkAndSaveQueryAuth();
} catch (e) {}
try {
if (token.value) await getMe();
} catch (e) {}

Expand Down

0 comments on commit c678642

Please sign in to comment.