AuthProvider class abstract interface

The IdP-specific implementation behind a provider interface.

Logto is the ONLY provider implementation in v1 (no second-IdP work is planned); the interface exists so consumers and tests fake the IdP without pulling the Logto SDK. Every method may throw — the SessionController and the IAuth seam wrap thrown errors into problem-typed Results.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

freshClaimToken() Future<String?>
Forces acquisition of a FRESH claim-bearing JWT — bypassing any cached token — after a server-side claim write such as OnboardSync (C0 §13), and returns the EXACT raw token whose payload the home-claim parser decodes.
idToken() Future<String?>
The raw OIDC ID token for the active session, if any. Needed by the onboarding POST /User create body.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh(SessionTokens current) Future<SessionTokens>
Exchanges a rotating refresh token for a fresh pair.
reMintOnOpen(SessionTokens current) Future<SessionTokens>
Silently re-mints the access token on app open, keeping the refresh token.
resourceToken(ResourceKey key) Future<ResourceToken>
Acquires a fresh access token for one resource (Logto per-resource token).
signIn({Map<String, String> extraParams}) Future<SessionTokens>
Runs the interactive sign-in. extraParams carries the deferred-login one-time token / login hint for the app-handoff flow.
signOut() Future<void>
Clears the provider-side session.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited