uikit/dist/keycloak.d.ts
Mohamadzadeh 43b4a2a42b
All checks were successful
Build and Deploy Next.js + Nginx Docker Image / build-and-deploy (push) Has been skipped
Build and Deploy Next.js + Nginx Docker Image / deploy (push) Has been skipped
refactor new BiProvider | v1.2.1
2026-10-26 13:58:14 +03:30

25 lines
729 B
TypeScript

import type { ReactNode } from "react";
export interface KeycloakProps {
clientId: string;
url?: string;
realm?: string;
initOptions?: Record<string, unknown>;
loading?: ReactNode;
errorFallback?: ReactNode;
allowUnauthenticated?: boolean;
onError?: (error: unknown) => void;
}
export declare function Keycloak(props: KeycloakProps): null;
export interface KeycloakState {
instance: any;
initialized: boolean;
authenticated: boolean;
token: string | null;
error: unknown;
login(options?: Record<string, unknown>): Promise<void>;
logout(options?: Record<string, unknown>): Promise<void>;
updateToken(minValidity?: number): Promise<boolean>;
}
export declare function useKeycloak(): KeycloakState;