JsonStorage class

Storage bridge for FlutterFeathersjs

Used to store access token and user data

Be aware that this is not secure storage, use any thing else more secure storage instead

Constructors

JsonStorage()

Properties

hashCode int
The hash code for this object.
no setterinherited
jsonBridge ↔ JSONBridge
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteAccessToken({String? client}) Future<void>
Delete the early stored JWT for reAuth() purpose
deleteUser() Future<void>
Save the authenticated user sent back from feathers js server after login
getAccessToken({String? client}) Future<String?>
Get the early stored JWT for reAuth() purpose
getUser() Future<Map<String, dynamic>>
Get the early stored authenticated user
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveAccessToken(String accessToken, {String? client}) Future<void>
Save the JWT token for reAuth() purpose
saveUser(Map<String, dynamic> user) Future<void>
Save the authenticated user data in the secure storage
toString() String
A string representation of this object.
inherited

Operators

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