DefaultTokenManager class

Kakao SDK에서 기본 제공하는 토큰 저장소 구현체

기기 고유값을 이용해 토큰을 암호화하고 SharedPreferences에 저장함 (Android는 SharedPreferences, iOS는 UserDefaults에 저장함)

Implemented types

Constructors

DefaultTokenManager()
factory

Properties

hashCode → int
The hash code for this object.
read-onlyinherited
runtimeType → Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

clear() → Future<void>
저장되어 있는 OAuthToken 객체를 삭제
override
getToken() → Future<OAuthToken?>
저장되어 있는 OAuthToken 반환
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setToken(OAuthToken token) → Future<void>
TokenManagerOAuthToken 할당 Redirect 방식 로그인 시 서비스 서버에서 발급받은 토큰을 클라이언트에 할당하기 위한 용도로 사용 가능
override
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

atKey → const String
"com.kakao.token.AccessToken"
expiresAtKey → const String
"com.kakao.token.AccessToken.ExpiresAt"
rtExpiresAtKey → const String
"com.kakao.token.RefreshToken.ExpiresAt"
rtKey → const String
"com.kakao.token.RefreshToken"
scopesKey → const String
"com.kakao.token.Scopes"
secureModeKey → const String
"com.kakao.token.KakaoSecureMode"
tokenKey → const String
"com.kakao.token.OAuthToken"
versionKey → const String
"com.kakao.token.version"