-
Notifications
You must be signed in to change notification settings - Fork 167
Open
Description
### Issue Description
I'm encountering an issue when calling logout() in @axa-fr/react-oidc. After clicking the logout button, I receive the following error
### 📌 Error Message:
### Expected Behavior:
After logging out, the user should be redirected to the login screen (https://localhost:3000), but this is not happening.
### 🛠 Code Implementation
const { logout } = useOidc('default');
const handleLogout = async () => {
try {
logout();
onConfirm();
} catch (error) {
console.error("Logout error:", error);
}
}
### OIDC Configuration
export const configurationIdentityServerWithoutServiceWorker = {
client_id: env.REACT_APP_CLIENT_ID,
redirect_uri: window.location.origin + '/callback',
silent_redirect_uri: window.location.origin + '/silent_callback',
silent_login_uri: window.location.origin + '/silent_callback',
scope: IDENTITY_SERVER_SCOPE,
authority: env.REACT_APP_IDENTITY_SERVER_URL,
refresh_time_before_tokens_expiration_in_second: 40,
storage: localStorage,
//
preload_user_info: true,
logLevel: 2,
};
Metadata
Metadata
Assignees
Labels
No labels