OAuthGrant class

An OAuth grant representing a user's authorization of an OAuth client.

Only relevant when the OAuth 2.1 server is enabled in Supabase Auth.

Constructors

OAuthGrant({required OAuthAuthorizedClient client, required List<String> scopes, required DateTime grantedAt})
const
OAuthGrant.fromJson(Map<String, dynamic> json)
factory

Properties

client → OAuthAuthorizedClient
The OAuth client the grant was issued to.
final
grantedAt → DateTime
The moment the grant was created.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes → List<String>
The scopes granted to the client.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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