awesome_node_auth_flutter library

Flutter/Dart authentication client for the awesome-node-auth backend.

Supports:

  • Web (including WASM): cookie-based auth with CSRF protection
  • Native (iOS, Android, Desktop): Bearer token with in-memory storage

Classes

AuthClient
Abstract authentication client.
AuthEvent
An event emitted by AuthClient.events to describe authentication lifecycle changes.
AuthOptions
Configuration options for AuthClient.
AuthResult<T>
Generic result type for auth operations.
AuthState
Reactive authentication state that notifies listeners of user changes.
AuthUser
Represents the authenticated user returned by the backend.
InMemoryTokenStorage
A simple in-memory TokenStorage implementation.
LoginResult
Result returned by AuthClient.login.
SessionInfo
Represents an active user session.
TokenStorage
Interface for persisting Bearer access and refresh tokens on native platforms.
TotpSetupData
Data returned when setting up TOTP two-factor authentication.
UiConfig
UI configuration returned by the backend's /ui/config endpoint.

Enums

AuthEventType
Types of authentication lifecycle events.