CookieStorageService class abstract interface

An abstract class for managing cookie storage and related operations.

Provides methods for initializing cookie storage, setting cookies, logging out, deleting access tokens and cookies, retrieving authentication cookies, and building URLs with tokens.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildUrlWithToken(String fileUrl) Future<String>
Builds a URL with the access token appended as a query parameter.
deleteAccessTokenOnly() Future<void>
Deletes only the access token from the cookies.
deleteCookies() Future<void>
Deletes all cookies.
getAuthenticationCookies() Future<List<Cookie>>
Retrieves the authentication cookies.
getCookieManager() → CookieManager
Returns a CookieManager for managing cookies with Dio.
logout() Future<void>
Logs out by deleting all cookies.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCookies(List<Cookie> cookies, {bool deleteAll = false}) Future<void>
Sets the provided cookies.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

initialize() Future<CookieStorageService>
Initializes the CookieStorageService by setting up a persistent cookie jar.