@ssplib/react-components 0.0.330 → 0.0.331
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/providers/KeycloakAuthProvider.d.ts +3 -1
- package/index.cjs +2 -2
- package/index.cjs.map +1 -1
- package/index.esm.js +2 -2
- package/index.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ interface KeycloakAuthProviderProps {
|
|
|
20
20
|
onAuthSuccess?: (user: User) => void;
|
|
21
21
|
/** Callback executado quando autenticação falha */
|
|
22
22
|
onAuthError?: (error: Error) => void;
|
|
23
|
+
/** Callback executado quando logout é concluído com sucesso (após o redirect de volta) */
|
|
24
|
+
onLogoutSuccess?: () => void;
|
|
23
25
|
/** Habilita logs de debug (apenas em desenvolvimento) */
|
|
24
26
|
enableDebugLogs?: boolean;
|
|
25
27
|
}
|
|
@@ -32,5 +34,5 @@ interface KeycloakAuthProviderProps {
|
|
|
32
34
|
* - Login e logout com callbacks personalizáveis
|
|
33
35
|
* - Verificação de roles
|
|
34
36
|
*/
|
|
35
|
-
export declare function KeycloakAuthProvider({ url, realm, clientId, children, type, resource_name, redirectUri, onAuthSuccess, onAuthError, enableDebugLogs, }: KeycloakAuthProviderProps): JSX.Element;
|
|
37
|
+
export declare function KeycloakAuthProvider({ url, realm, clientId, children, type, resource_name, redirectUri, onAuthSuccess, onAuthError, onLogoutSuccess, enableDebugLogs, }: KeycloakAuthProviderProps): JSX.Element;
|
|
36
38
|
export {};
|