Skip to content

Commit

Permalink
fix: await silent signin so errors are caught
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikskog committed Sep 8, 2024
1 parent 009a35e commit ce4747a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/authentication/components/SilentRenew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const SilentRenewComponent: FC = () => {
if (user) dispatch(authenticationActions.userSignIn(JSON.stringify(user as IAuthUser)));
else
try {
USER_MANAGER.signinSilent();
await USER_MANAGER.signinSilent();
} catch {
/*
User Manager throws "frame window timed out" or "Authorization Server requires End-User Interaction".
Expand Down

0 comments on commit ce4747a

Please sign in to comment.