You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use oidc-react with an application that can work offline. But I have redirect even if offline. Is there a way to disable oidc when offline ? This is what I tried but it still try to redirect when offline. Did I miss something ?
exportfunctionOidcProvider({ children }: PropsWithChildren){constisOnline=useOnline();if(!isOnline){return(<AuthProvideruserManager={undefined}authority={import.meta.env.VITE_AUTHORITY}clientId={import.meta.env.VITE_CLIENT_ID}redirectUri={import.meta.env.VITE_REDIRECT_URI}automaticSilentRenew={false}autoSignIn={false}autoSignOut={false}>{children}</AuthProvider>);}return(<AuthProvideruserManager={isSSO ? userManager : undefined}onSignIn={onSignIn}authority={import.meta.env.VITE_AUTHORITY}clientId={import.meta.env.VITE_CLIENT_ID}redirectUri={import.meta.env.VITE_KEYCLOAK_REDIRECT_URI}automaticSilentRenew={true}>{children}</AuthProvider>);}
The text was updated successfully, but these errors were encountered:
Grafikart
changed the title
Disable signin redirect if offline
Disable oidc when offline
Mar 11, 2025
I'm trying to use oidc-react with an application that can work offline. But I have redirect even if offline. Is there a way to disable oidc when offline ? This is what I tried but it still try to redirect when offline. Did I miss something ?
The text was updated successfully, but these errors were encountered: