@ssplib/react-components 0.0.330 → 0.0.332
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 +5 -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
|
@@ -14,12 +14,16 @@ interface KeycloakAuthProviderProps {
|
|
|
14
14
|
type?: 'govbr' | 'ad';
|
|
15
15
|
/** Nome do recurso para extrair roles */
|
|
16
16
|
resource_name?: string;
|
|
17
|
+
/** Base path da aplicação (ex: '/revidf'). Deixe vazio ou '/' para raiz */
|
|
18
|
+
basePath?: string;
|
|
17
19
|
/** URL de redirecionamento após login */
|
|
18
20
|
redirectUri?: string;
|
|
19
21
|
/** Callback executado quando autenticação é bem-sucedida */
|
|
20
22
|
onAuthSuccess?: (user: User) => void;
|
|
21
23
|
/** Callback executado quando autenticação falha */
|
|
22
24
|
onAuthError?: (error: Error) => void;
|
|
25
|
+
/** Callback executado quando logout é concluído com sucesso (após o redirect de volta) */
|
|
26
|
+
onLogoutSuccess?: () => void;
|
|
23
27
|
/** Habilita logs de debug (apenas em desenvolvimento) */
|
|
24
28
|
enableDebugLogs?: boolean;
|
|
25
29
|
}
|
|
@@ -32,5 +36,5 @@ interface KeycloakAuthProviderProps {
|
|
|
32
36
|
* - Login e logout com callbacks personalizáveis
|
|
33
37
|
* - Verificação de roles
|
|
34
38
|
*/
|
|
35
|
-
export declare function KeycloakAuthProvider({ url, realm, clientId, children, type, resource_name, redirectUri, onAuthSuccess, onAuthError, enableDebugLogs, }: KeycloakAuthProviderProps): JSX.Element;
|
|
39
|
+
export declare function KeycloakAuthProvider({ url, realm, clientId, children, type, resource_name, basePath, redirectUri, onAuthSuccess, onAuthError, onLogoutSuccess, enableDebugLogs, }: KeycloakAuthProviderProps): JSX.Element;
|
|
36
40
|
export {};
|