Skip to content

Commit

Permalink
fix: Variable 'user' cannot be of type null
Browse files Browse the repository at this point in the history
  • Loading branch information
simenandre committed May 15, 2020
1 parent 6cf9dda commit 0d8a0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export const AuthProvider: FC<AuthProviderProps> = (props) => {
}

const user = await userManager!.getUser();
if ((!user || user === null || user.expired) && autoSignIn) {
if ((!user || user.expired) && autoSignIn) {
if (onBeforeSignIn) {
onBeforeSignIn();
}
Expand Down

0 comments on commit 0d8a0c3

Please sign in to comment.