Skip to content

Commit

Permalink
fix: log error when fetching authenticated user
Browse files Browse the repository at this point in the history
  • Loading branch information
hkp22 committed Oct 28, 2024
1 parent 79ff2ab commit 7f05734
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export default defineNuxtPlugin(async () => {

if (!user.value) {
try {
user.value = await getAuthUser(fetchService, logger);
user.value = await getAuthUser(fetchService);
} catch (error) {
console.debug(error);
logger.debug('Failed to fetch authenticated user:', error);
}
}

Expand Down

0 comments on commit 7f05734

Please sign in to comment.