TokenGenerator class abstract
Token generator interface for creating secure tokens
This interface defines the contract for token generation in the authentication system. It allows for different token generation strategies while maintaining consistency.
- Implementers
Constructors
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
-
generateRefreshToken(
{int length = 64}) → String - Generates a refresh token
-
generateToken(
{int length = 64, String? prefix}) → String - Generates a secure token
-
isValidTokenFormat(
String token) → bool - Validates token format
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited