JS Client Reference
Full reference for `@ackplus/nest-auth-client`.
The framework-agnostic JS/TS auth client. Use it directly from Vue, Angular, Svelte, vanilla JS, or as the foundation under @ackplus/nest-auth-react.
AuthClient— every method (login, signup, logout, refresh, MFA, password, verification, tenant) with TS signatures.AuthClientConfig—baseUrl,accessTokenType,autoRefresh,refreshThreshold, hooks.- Storage Adapters —
MemoryStorage,LocalStorageAdapter,SessionStorageAdapter,CookieStorageAdapter, custom adapters. - HTTP Adapters —
FetchAdapter(default),createAxiosAdapter, custom adapters. - Events —
onTokenRefreshed,onTokensSet,onTokensRemoved,onLogout,onError,onSessionVerified,onRefreshSessionData. - Utilities —
decodeJwt,isTokenExpired,hasRole,hasPermission,hasAnyAccess,hasAllAccess.