vuethenticate
Version:
A Vue 3 authentication state management library using oidc-client-ts
14 lines • 680 B
TypeScript
import { AuthConfig, UseAuthCallbacksReturn, UseAuthReturn } from '../types/auth';
/**
* Vue composable for authentication state management using OIDC
* @param config - Authentication configuration
* @returns Authentication state and methods
*/
export declare const useAuth: <TState = unknown>(config: AuthConfig) => UseAuthReturn<TState>;
/**
* Internal composable for callback components
* Automatically finds the active UserManager instance and waits for initialization
* @returns Callback processing methods and initialization state
*/
export declare const useAuthCallbacks: <TState = unknown>() => UseAuthCallbacksReturn<TState>;
//# sourceMappingURL=useAuth.d.ts.map