DefaultTokenManager class
Kakao SDK에서 기본 제공하는 토큰 저장소 구현체
기기 고유값을 이용해 토큰을 암호화하고 SharedPreferences
에 저장함
(Android는 SharedPreferences, iOS는 UserDefaults에 저장함)
- Implemented types
Constructors
- DefaultTokenManager()
-
factory
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
-
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> -
TokenManager에 OAuthToken 할당
Redirect 방식 로그인 시 서비스 서버에서 발급받은 토큰을 클라이언트에 할당하기 위한 용도로 사용 가능
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- atKey → const String
- expiresAtKey → const String
- rtExpiresAtKey → const String
- rtKey → const String
- scopesKey → const String
- secureModeKey → const String
- tokenKey → const String
- versionKey → const String