TokenUtils class
토큰 만료 관련 유틸리티
토큰 만료 시간 계산 로직을 중앙화합니다.
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
-
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 Methods
-
isExpired(
DateTime? expiresAt) → bool - 토큰이 만료되었는지 확인
-
isExpiringSoon(
DateTime? expiresAt, [Duration threshold = const Duration(minutes: 5)]) → bool - 토큰이 곧 만료되는지 확인
-
timeUntilExpiry(
DateTime? expiresAt) → Duration - 만료까지 남은 시간