AuthStrategy class abstract

Base auth strategy. Implement to add custom auth behaviour. The ApiClient calls apply before every non-noAuth request.

Implementers

Constructors

AuthStrategy()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(RequestOptions options) Future<void>
Attach auth credentials to options before the request is sent.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onUnauthorized() Future<void>
Called when the API layer receives a 401. Use to trigger token refresh or logout in your app provider.
toString() String
A string representation of this object.
inherited

Operators

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