CookieExtension extension
Extension to add cookie management functionality to SuperBetterAuthClient
Methods
-
clearCookie(
String name) → Future< void> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Clear a specific cookie by name -
clearCookies(
) → Future< void> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Clear all cookies for the current domain -
getAuthCookies(
) → Future< Map< String, String?> > -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get authentication-related cookies commonly used by Better Auth Returns session, token, and other auth-related cookies -
getCookie(
String name) → Future< String?> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get a specific cookie by name Returns the cookie value or null if not found -
getCookies(
) → Future< Map< String, String> > -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get all stored cookies for the current domain Returns a map of cookie names to values -
getCookiesByNames(
List< String> names) → Future<Map< String, String?> > -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Get multiple cookies by names Returns a map with only the requested cookies (empty values for missing cookies) -
hasCookie(
String name) → Future< bool> -
Available on SuperBetterAuthClient, provided by the CookieExtension extension
Check if a specific cookie exists