AccessToken class

Constructors

AccessToken.fromMap(Map<String, dynamic> map)
factory

Properties

additional Map<String, dynamic>?
"add"
getter/setter pair
audience String?
"aud"
getter/setter pair
expireDate DateTime?
"exp" ExpireDate
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
issuedAtDate DateTime
"iat" create date
getter/setter pair
issuer String
"iss" issuer
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subject String
"sub" Subject
getter/setter pair
tokenID String
"jti" Json Web Token Id
getter/setter pair
userId String
"uid" User id
getter/setter pair

Methods

encrypt(BuildContext context) Future<String>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

create({required BuildContext context, required String userId, Map<String, dynamic>? additional, required String subject, required String deviceID, DateTime? expire}) AccessToken