AuthToken class

Constructors

AuthToken({String? ipAddress, num lifeSpan = -1, required String userId, DateTime? issuedAt, Map<String, dynamic>? payload})
AuthToken.fromJson(String jsons)
factory
AuthToken.fromMap(Map<String, dynamic> data)
factory
AuthToken.parse(String jwt)
factory
AuthToken.validate(String jwt, Hmac hmac)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
ipAddress String?
getter/setter pair
issuedAt DateTime
getter/setter pair
lifeSpan num
getter/setter pair
payload Map<String, dynamic>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
userId String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize(Hmac hmac) String
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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