AuthToken class Null safety

Represents an OAuth 2.0 token.

AuthServerDelegate and AuthServer will exchange OAuth 2.0 tokens through instances of this type.

See the package:liquidart/managed_auth library for a concrete implementation of this type.

Constructors

AuthToken()

Properties

accessToken String?
The value to be passed as a Bearer Authorization header.
read / write
clientID String?
The client ID this token was issued from.
read / write
expirationDate DateTime?
The time when this token expires.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
isExpired bool
Whether or not this token is expired by evaluated expirationDate.
read-only
issueDate DateTime?
The time this token was issued on.
read / write
refreshToken String?
The value to be passed for refreshing a token.
read / write
resourceOwnerIdentifier int?
The identifier of the resource owner. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scopes List<AuthScope>?
Scopes this token has access to.
read / write
type String?
The type of token, currently only 'bearer' is valid.
read / write

Methods

asMap() Map<String, dynamic>
Emits this instance as a Map according to the OAuth 2.0 specification.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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