CookieStrategy class

Browser-like persistent cookie authentication.

When sessionCookieNames is empty, any non-expired cookie applicable to the configured API origin is enough to restore transport authentication. The generated package should validate the session by calling its typed account bootstrap endpoint; a 401 will expire the bridge session.

Inheritance

Constructors

CookieStrategy({List<String> sessionCookieNames = const <String>[]})
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
sessionCookieNames → List<String>
final

Methods

apply(RequestOptions options, AuthStrategyContext context) → Future<void>
override
clearCredentials(AuthStrategyContext context) → Future<void>
override
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
onUnauthorized(AuthStrategyContext context) → Future<void>
inherited
saveCredentials(String? credential, AuthStrategyContext context) → Future<void>
inherited
toString() → String
A string representation of this object.
inherited

Operators

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