constants/shared_prefrence_storage library

Classes

SharedPrefrenceStorage
A utility class to manage token storage using SharedPreferences.

Functions

getToken() Future<Map<String, dynamic>?>
Retrieves the stored token from SharedPreferences.
removeToken() Future<void>
Removes the stored authentication token from SharedPreferences.
setToken(Map<String, dynamic> map) Future<void>
Stores the given token data in SharedPreferences.