CkAuthTokenManager class

Internal token manager — NOT exposed to developers. Creates CkTokenProvider internally for CkTransport/DioInterceptor.

Constructors

CkAuthTokenManager()

Properties

currentAccessToken String?
Get the current access token
no setter
currentRefreshToken String?
Get the current refresh token
no setter
hashCode int
The hash code for this object.
no setterinherited
hasTokens bool
Check if tokens exist
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearTokens() Future<void>
Clear all tokens (called internally during logout)
createTokenProvider(CkAuthExtractors extractors) CkTokenProvider
Creates CkTokenProvider for CkTransport — internal bridge only. Developer never sees or creates this.
initialize() Future<void>
Initialize: restore tokens from secure storage to memory cache
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveTokens({required String accessToken, String? refreshToken}) Future<void>
Save tokens (called internally after login/signup/token refresh)
toString() String
A string representation of this object.
inherited

Operators

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