AuthorizationOptions class final

Class that handles the http request's authorization.

Constructors

AuthorizationOptions({required FutureOr<String> getAuthorizationToken(), String authorizationKey = 'Authorization', AuthorizationTypeEnum authorizationType = AuthorizationTypeEnum.header})
const

Properties

authorizationKey String
The key that will be used to add the authorization token on the request.
final
authorizationType AuthorizationTypeEnum
The type of authorization that will be used.
final
getAuthorizationToken FutureOr<String> Function()
The function that determines if the request should be retried.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAuthorizationToken(RequestOptions options) FutureOr<void>
Method that adds the authorization tokens on the request.
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