OAuthPkceProvider class
OAuth PKCE for a signed-in user. Run the browser step with
flutter_web_auth_2, then pass the returned code to exchange. Token
exchange, refresh, and secure persistence live here.
The server issues user tokens only for the inbox/agent surface today
(inboxes:read / inboxes:write). For send/contacts use BackendTokenProvider.
- Implemented types
Constructors
- OAuthPkceProvider(OAuthConfig config, {TokenStore? store, Dio? dio})
Properties
- config → OAuthConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
Build the
/oauth/authorizeURL for a PKCE challenge. -
exchange(
String code, String verifier) → Future< void> - Exchange an authorization code + verifier for tokens.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
signOut(
) → Future< void> -
token(
) → Future< String> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited