BearerStrategy class
Persistent bearer-token authentication backed by platform secure storage.
- Inheritance
-
- Object
- AuthStrategy
- BearerStrategy
Constructors
- BearerStrategy({String tokenKey = 'access_token', String headerName = 'Authorization', String scheme = 'Bearer'})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- headerName → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheme → String
-
final
- tokenKey → String
-
final
Methods
-
apply(
RequestOptions options, AuthStrategyContext context) → Future< void> -
override
-
clearCredentials(
AuthStrategyContext context) → Future< void> -
override
-
getToken(
AuthStrategyContext context) → Future< String?> -
hasCredentials(
AuthStrategyContext context) → Future< bool> -
override
-
initialize(
AuthStrategyContext context) → Future< void> -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
inherited
-
saveCredentials(
String? credential, AuthStrategyContext context) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited