AuthCode class Null safety

Represents an OAuth 2.0 authorization code.

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

See the conduit/managed_auth library for a concrete implementation of this type.

Constructors

AuthCode()

Properties

clientID String?
The client ID the authorization code was issued under.
read / write
code String?
The actual one-time code used to exchange for tokens.
read / write
expirationDate DateTime?
When this authorization code expires, recommended for 10 minutes after issue date.
read / write
hasBeenExchanged bool?
Whether or not this authorization code has already been exchanged for a token.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
isExpired bool
Whether or not this code has expired yet, according to its expirationDate.
read-only
issueDate DateTime?
The timestamp this authorization code was issued on.
read / write
requestedScopes List<AuthScope>?
Scopes the exchanged token will have.
read / write
resourceOwnerIdentifier int?
The identifier of the resource owner.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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