FAQ
Should I use Authyra with Firebase Auth or Supabase Auth?
Not for the session they manage: their SDKs already persist and refresh it. Authyra helps when your own API issues tokens. You can still use GoogleProvider() or AppleProvider() in identity-only mode to obtain a credential for one of those SDKs.
Does it work on the web?
Yes. The core, authyra_dio, OAuth2Provider, BackendOAuthProvider and both native providers support the web. Browser storage is not a secure enclave: any script running on your origin can read tokens, so keep access tokens short-lived.
Does it refresh in the background?
While the app runs, the active session is refreshed on a timer. Mobile operating systems suspend timers in the background; AuthyraScope refreshes on resume instead. Authyra does not schedule OS background tasks.
Can two isolates or processes share a session?
Coordination happens inside one Authyra instance. An app extension, a background isolate or a second browser tab that refreshes the same refresh token can race with it. Give one of them ownership of refresh, or let your server tolerate a short reuse window.
Does it work with BLoC, Riverpod or Provider?
Yes. authyra.states is a plain stream and AuthStateListenable a ValueListenable. Expose them through your state management of choice; there is nothing to adapt.
Why are Google and Apple separate packages?
They depend on native SDKs. An app that does not use them should not have to compile them.
Why no deep-link handling for OAuth?
The secure browser session returns the redirect URL to the call that opened it. There is nothing to route, no global handler, and no way for one sign-in to receive another one's redirect.
Does Authyra validate JWTs?
No. A token's signature can only be trusted when verified by a party that holds the right keys and cannot be tampered with: your server. On the device, Authyra reads expiry from what your provider returns.
Is it production ready?
The API is pre-1.0 and may still change between minor versions, with every change listed in the changelog. The behaviors on the Guarantees page are covered by tests.