OAuthClient class final

Constructors

OAuthClient(OAuthClientMetadata metadata, {String service = 'bsky.social'})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
metadata OAuthClientMetadata
Client metadata to be used during authentication.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service String
Service for which the account to be authenticated exists.
final

Methods

authorize(String identity) Future<(Uri, OAuthContext)>
Initiates an OAuth 2.0 authorization request using Pushed Authorization Requests (PAR) with PKCE (Proof Key for Code Exchange) and DPoP (Demonstrating Proof of Possession).
callback(String callback, OAuthContext context) Future<OAuthSession>
Processes the OAuth 2.0 authorization callback with DPoP (Demonstrating Proof of Possession) support.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh(OAuthSession session) Future<OAuthSession>
Refreshes an OAuth 2.0 access token using DPoP-bound refresh token flow.
toString() String
A string representation of this object.
inherited

Operators

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