Skip to content

Commit

Permalink
Merge pull request #39 from Rikthepixel/bug/login-on-production
Browse files Browse the repository at this point in the history
Log login redirect errors
  • Loading branch information
Rikthepixel authored Jan 10, 2024
2 parents 75bf230 + a47d06e commit 2c6ba4d
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 2c6ba4d

Please sign in to comment.