antinvestor_auth_runtime
Auth runtime for Antinvestor Flutter apps. OAuth2 + PKCE, adaptive DPoP, rotating refresh tokens with reuse detection, Isolate-isolated tokens, hardware-backed storage, Riverpod providers, Material widgets.
0.4.2
109 downloads/mo
#1989 most downloaded on pub.dev
antinvestor/service-authentication
What this package is like to depend on
Last release 2 months ago
18 Jun 2026
Ships fairly regularly
a new release about every 3 weeks
Most releases are documented
notes for 3 of 4 stable releases
Nothing withdrawn
no release was ever pulled
4 months old
4 releases · first in 2026
4 releases in the last 12 months
see the full history below
Release timeline
4 releases · Apr 2026 to Jun 2026Releases
latest 4-
0.4.218 Jun 2026Release notes
Open source →Added
NativeCredentialConfig, a high-level factory configuration for Apple and Google native credential providers. Android apps can now enable the Google Sign-In v7 Credential Manager / One Tap path withcreateAuthRuntime(nativeCredentialConfig: NativeCredentialConfig(...)).preferSilentsupport for native credentials. Apps can now explicitly disable the app-start no-UI credential attempt while keeping the interactive native sheet on sign-in tap.
Changed
createAuthRuntimerejects simultaneousnativeCredentialConfigandnativeProvidersinputs to prevent ambiguous native credential setup.- Documentation now presents
NativeCredentialConfigas the preferred app integration path and keepsnativeProvidersfor tests and custom provider stacks.
-
0.4.127 May 2026Nothing published for this version
-
0.4.001 May 2026Release notes
Open source →Changed
- Browser leg now uses
flutter_web_auth_2instead offlutter_appauth. Adds web, Windows, and Linux to the supported platforms (previously iOS/Android/macOS only) and removes theAppAuthiOS pod, eliminating the long-standing pod conflict withgoogle_sign_in_ios(AppAuth ~> 2.0). PKCE/state/nonce are now generated byTokenWorker.prepareAuthexclusively — the previous double-generation (worker + flutter_appauth) is gone, and the OAuthstateparameter is now actually verified end-to-end.
Breaking
- The internal
OAuthFlow.authorizenow takes anAuthorizeRequestargument andOAuthResultno longer carriesverifier/nonce.OAuthFlowispackage:antinvestor_auth_runtime/src/...(not exported), so consumers that only depend oncreateAuthRuntimeare unaffected. Tests that subclassOAuthFlowneed to update the override signature.
Platform setup (consumers)
- iOS / macOS: declare your
redirectScheme(e.g.com.example.app) underCFBundleURLTypesinInfo.plist. Universal Links also work — setredirectUrito thehttps://...URL andflutter_web_auth_2will use ASWebAuthenticationSession. - Android: add
flutter_web_auth_2'sCallbackActivitytoAndroidManifest.xmlwith an intent filter for the redirect scheme. See flutter_web_auth_2 README. - Web: host
auth.htmlat the redirect URI's path (flutter_web_auth_2posts the callback URL viawindow.opener.postMessage). - Windows / Linux: uses an embedded
desktop_webview_windowby default; pass anhttp://localhost:{port}redirectUriif you want the loopback fallback.
FedCM
- The runtime is FedCM-transparent:
flutter_web_auth_2opens the IdP login page in the system browser, and FedCM (navigator.credentials.get({ identity })) is invoked by the IdP page itself when the IdP supports it. No client-side wiring is required.
Dependencies
flutter_secure_storage9 → 10. Migrates Android off the deprecated Jetpack Crypto package and unifies iOS/macOS intoflutter_secure_storage_darwin. Consumer apps must raise platform mins: AndroidminSdkVersion >= 23(was 19), iOS>= 12.0, macOS>= 10.14.pointycastle3.9 → 4.0. Pure additive: new ciphers (Blowfish, Camellia, Twofish), generics ongenerateKeyPair. No usage changes required.sign_in_with_apple6.1 → 7.0. ExtendedAuthorizationErrorCodecases (our switch already has adefault:fall-through, so no code changes).
- Browser leg now uses
-
0.3.120 Apr 2026Release notes
Open source →Added
runtime.fetch/runtime.uploadaccept fully-qualifiedhttps://...URLs; when the path starts withhttp://orhttps://, the runtime uses it directly and skipsapiBaseUrlprepending. Unblocks consumers that talk to multiple service domains with a single OAuth client.