BackendTokenProvider class
The recommended provider for send/OTP/verification/contacts. Calls your
backend for a short-lived, narrowly-scoped token; caches it until near
expiry. The lk_live_ key stays on your server.
- Implemented types
Constructors
-
BackendTokenProvider(Future<
Grant> _fetchGrant(), {Duration skew = const Duration(seconds: 30)})
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
token(
) → Future< String> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
parseGrant(
Map< String, dynamic> json) → Grant -
Parse
{ "token": ..., "expires_at"|"expires_in": ... }from your backend.