Nest Authbeta

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.
  • AuthClientConfigbaseUrl, accessTokenType, autoRefresh, refreshThreshold, hooks.
  • Storage AdaptersMemoryStorage, LocalStorageAdapter, SessionStorageAdapter, CookieStorageAdapter, custom adapters.
  • HTTP AdaptersFetchAdapter (default), createAxiosAdapter, custom adapters.
  • EventsonTokenRefreshed, onTokensSet, onTokensRemoved, onLogout, onError, onSessionVerified, onRefreshSessionData.
  • UtilitiesdecodeJwt, isTokenExpired, hasRole, hasPermission, hasAnyAccess, hasAllAccess.