FlutterAuthenticationKeyManager class

Implementation of a Serverpod AuthenticationKeyManager specifically for Flutter. Authentication key is stored in the SharedPreferences.

Constructors

FlutterAuthenticationKeyManager({String runMode = 'production', Storage? storage})
Creates a new authentication key manager. By default it uses the shared preferences for storing keys.

Properties

hashCode int
The hash code for this object.
no setterinherited
runMode String
The run mode of the Serverpod.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

get() Future<String?>
Retrieves an authentication key.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String key) Future<void>
Saves an authentication key retrieved by the server.
remove() Future<void>
Removes the authentication key.
toString() String
A string representation of this object.
inherited

Operators

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