SimpleAuthService class

SIMULATED JWT Implementation (For Demo purposes without external deps) In production, replace with dart_jsonwebtoken.

Implemented types

Constructors

SimpleAuthService(String secret)

Properties

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

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
signToken(UserPrincipal user) Future<String>
override
toString() String
A string representation of this object.
inherited
verifyToken(String token) Future<UserPrincipal?>
override

Operators

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