`activeNavigator` does not reset when clicking browser back button
schettn opened this issue · 2 comments
schettn commented
I use the following to get the loading state during the auth.signInRedirect
call.
const auth = useAuth()
const loadingText = useMemo(() => {
switch (auth.activeNavigator) {
case 'signinRedirect':
case 'signinSilent':
return 'Signing you in...'
case 'signoutSilent':
case 'signoutRedirect':
return 'Signing you out...'
case undefined:
return undefined
default:
return 'Loading...'
}
}, [auth.activeNavigator])
The problem is that when I press the browser back button the activeNavigator still is signinRedirect
. Is this indented?
How do I cope with that?
pamapa commented
This issue was made in the wrong repository i guess you meant https://github.com/authts/react-oidc-context