KAuthSession class

저장된 세션 데이터

Constructors

KAuthSession({required AuthProvider provider, required KAuthUser user, String? accessToken, String? refreshToken, String? idToken, DateTime? expiresAt, String? serverToken, required DateTime savedAt})
const
KAuthSession.fromAuthResult(AuthResult result, {String? serverToken})
AuthResult에서 생성
factory
KAuthSession.fromJson(Map<String, dynamic> json)
JSON에서 생성
factory

Properties

accessToken String?
액세스 토큰
final
expiresAt DateTime?
토큰 만료 시간
final
hashCode int
The hash code for this object.
no setterinherited
idToken String?
ID 토큰
final
isExpired bool
토큰이 만료되었는지 확인
no setter
provider AuthProvider
Provider
final
refreshToken String?
리프레시 토큰
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
savedAt DateTime
저장 시간
final
serverToken String?
서버 토큰 (백엔드 JWT 등)
final
user KAuthUser
사용자 정보
final

Methods

encode() String
JSON 문자열로 인코딩
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
JSON으로 변환
toString() String
A string representation of this object.
override

Operators

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

Static Methods

decode(String encoded) KAuthSession
JSON 문자열에서 디코딩