TokenManagerRefreshDelegate<T> class abstract Migrating from 0.1

Defines how TokenManager refreshes expired tokens.

Annotations
  • @Deprecated('Use TokenRefresher; set the expiry margin with ' 'TokenManager.create(skew: ...).')

Constructors

TokenManagerRefreshDelegate()
Creates a refresh delegate.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
refreshDelay → Duration
Delay before retrying refresh after a transient failure.
no setter
refreshThreshold → Duration
Time before expiration when refresh should be scheduled.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh(T tokens) → Future<T>
Refreshes the provided tokens.
toString() → String
A string representation of this object.
inherited

Operators

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