AuthClientCookie class
A cookie received from an auth response.
The client stores the name/value plus expiry and transport metadata needed
to avoid sending stale credentials or Secure cookies over HTTP. Other
attributes such as HttpOnly, Path, and SameSite are server instructions
and are not sent back as request data.
Constructors
- AuthClientCookie({required String name, required String value, DateTime? expires, int? maxAge, bool secure = false})
-
Creates a cookie value managed by an AuthClientCookieStore.
const
- AuthClientCookie.fromSetCookie(String header, {DateTime? now})
-
Parses the first cookie in a
Set-Cookieheader.factory
Properties
- expires → DateTime?
-
Absolute expiry supplied by the server, if present.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDeletion → bool
-
Whether this cookie instructs the client to remove its stored value.
no setter
- isExpired → bool
-
Whether the cookie's absolute expiry has passed.
no setter
- maxAge → int?
-
Server-supplied relative lifetime, if present.
final
- name → String
-
Cookie name.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secure → bool
-
Whether the cookie must only be sent over HTTPS.
final
- value → String
-
Cookie value.
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