AuthTokenOption class final

AuthTokenOption handle token authorization

Available Extensions

Constructors

AuthTokenOption({String typeHeader = 'Authorization', String prefixHeader = 'Bearer', required GetToken getToken, required AuthCondition authCondition, required OnAuthTokenResponse onAuthTokenResponse, ClearCondition? clearCondition, OnClearToken? onClearToken, List<Uri>? excludeEndpointUsageToken})

Properties

authCondition AuthCondition
Condition for trigger OnAuthTokenResponse
final
clearCondition ClearCondition?
Condition for trigger OnClearToken
final
excludeEndpointUsageToken List<Uri>?
Exclude endpoint to usage authorization
final
getToken GetToken
Function async to get token
final
hashCode int
The hash code for this object.
no setterinherited
onAuthTokenResponse OnAuthTokenResponse
Callbak from authCondition is true
final
onClearToken OnClearToken?
Callbak from OnClearToken is true
final
prefixHeader String
Prefix header for auth default value 'Bearer'
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeHeader String
Type header for auth default value 'Authorization'
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