TokenManagerProvider class
Kakao SDK가 사용하게 될 토큰 저장소 제공자
Kakao SDK는 로그인에 성공하면 이 제공자를 통해 현재 지정된 토큰 저장소에 토큰 저장 저장된 토큰은 로그인 기반 API 호출 시 자동으로 인증 헤더에 추가됨
DefaultTokenManager를 기본 저장소로 사용하며, 토큰을 직접 관리하고 싶은 경우 TokenManager 인터페이스를 구현하여 나만의 저장소 설정 가능 앱 서비스 도중 저장소 구현을 변경하는 경우, 앱 업데이트 사용자를 위하여 기존에 저장되어 있던 토큰 마이그레이션 고려해야 함
// 사용자 정의 저장소 설정하기
TokenManagerProvider.instance.manager = MyTokenManager();
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- manager ↔ TokenManager
-
현재 지정된 토큰 저장소
기본 값 DefaultTokenManager
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
- instance → TokenManagerProvider
-
singleton 객체
final