v5 -> v6
Migration Guide
1. Remove public/silent-sso.htm
public/silent-sso.htm2. Update configuration changes
export const { OidcProvider, useOidc, getOidc } = createReactOidc({
issuerUri: "https://auth.your-domain.net/realms/myrealm",
clientId: "myclient",
// `publicUrl` has been renamed to `homeUrl`
- publicUrl: import.meta.env.BASE_URL,
+ homeUrl: import.meta.env.BASE_URL,
// `isAuthGloballyRequired` has been renamed to `autoLogin`
- isAuthGloballyRequired: true,
+ autoLogin: true,
// `doEnableDebugLogs` has been renamed to `debugLogs`
- doEnableDebugLogs: true,
+ debugLogs: true,
});
createMockReactOidc({
// ...
- publicUrl: import.meta.env.BASE_URL,
+ homeUrl: import.meta.env.BASE_URL,
});3. Update authentication assertion
4. (OPTIONAL, Recommended) Update your usage of the useOidc hook
5. (OPTIONAL) Assume getTokens() is an async function
6. Error Management Updates
7. Keycloak Configuration Improvements
Keycloak8. Session Initialization Changes
9. Impersonation
Last updated
Was this helpful?