zuraffa_auth 1.1.0 copy "zuraffa_auth: ^1.1.0" to clipboard
zuraffa_auth: ^1.1.0 copied to clipboard

Typed authentication for the Zuraffa ecosystem: pluggable providers behind a pure-Dart port, token auto-refresh, and session persistence via zuraffa_session.

zuraffa_auth #

Typed authentication for the Zuraffa ecosystem — pluggable providers behind a pure-Dart port, with token auto-refresh and session persistence via zuraffa_session.

Platform packages #

Typed platform adapters for the native halves, each over one injected channel seam (pure Dart; the native embedder is a documented protocol):

  • zuraffa_auth_android — Credential-Manager-shaped provider + encrypted session store
  • zuraffa_auth_ios — Apple-authorization provider + Keychain store with a declared accessibility policy
  • zuraffa_auth_macos — local-authorization provider + data-protection Keychain store with partition-scoped writes

Usage #

final auth = AuthService(
  providers: [MyPasswordProvider()],   // any AuthProvider adapter
  sessions: FileSessionStore(storeDir), // persistence via zuraffa_session
);

final session = await auth.signIn(kimi,
    AuthCredentials(identifier: ada, secret: pw));

// after an app restart:
final restored = await auth.restore();

// current session — auto-refreshes an expired token:
final current = await auth.currentSession();
0
likes
150
points
86
downloads

Documentation

API reference

Publisher

verified publisherzuraffa.com

Weekly Downloads

Typed authentication for the Zuraffa ecosystem: pluggable providers behind a pure-Dart port, token auto-refresh, and session persistence via zuraffa_session.

Homepage
Repository (GitHub)
View/report issues

Topics

#authentication #sessions #clean-architecture #zuraffa

License

MIT (license)

Dependencies

json_annotation, zorphy_annotation, zuraffa, zuraffa_session

More

Packages that depend on zuraffa_auth