Skip to content

Commit

Permalink
Log login redirect errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rikthepixel committed Jan 10, 2024
1 parent 4f86bd6 commit a47d06e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/frontend/src/lib/auth/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ window.addEventListener('load', async () => {
appState?.returnTo || window.location.pathname,
);
})
.catch(() => null);
.catch((err) => {
console.error(err);
return null;
});
}

const user = await auth.getUser();
Expand Down

0 comments on commit a47d06e

Please sign in to comment.