@authx-rs/sdk-vue
Generated from packages/authx-sdk-vue/dist/types.
Vue plugin and composable for authx token clients.
Modules
Section titled “Modules”AuthxVuePlugin
Section titled “AuthxVuePlugin”export interface AuthxVuePlugin { install(app: App): void;}AuthxVueComposableResult
Section titled “AuthxVueComposableResult”export interface AuthxVueComposableResult { client: AuthxTokenManager; snapshot: Readonly<{ value: AuthxTokenSnapshot; }>; accessToken: Readonly<{ value: string | null; }>; isAuthenticated: Readonly<{ value: boolean; }>; refresh(): Promise<StoredTokenState>; clear(): Promise<AuthxTokenSnapshot>; setTokens(tokens: StoredTokenState | null): Promise<AuthxTokenSnapshot>; setTokenResponse(response: OidcTokenResponse, options?: { now?: number; preserveRefreshToken?: boolean; }): Promise<AuthxTokenSnapshot>; fetch(input: RequestInfo | URL, init?: RequestInit, options?: AuthxFetchOptions): Promise<Response>;}AUTHX_TOKEN_KEY
Section titled “AUTHX_TOKEN_KEY”export declare const AUTHX_TOKEN_KEY: InjectionKey<AuthxTokenManager>;createAuthxPlugin
Section titled “createAuthxPlugin”export declare function createAuthxPlugin(client: AuthxTokenManager): AuthxVuePlugin;useAuthxToken
Section titled “useAuthxToken”export declare function useAuthxToken(clientArg?: AuthxTokenManager): AuthxVueComposableResult;