TokenLostError class
トークンが失われた、または無効になった場合のエラー ログアウト状態を示す(再認証が必要)
このエラーは以下の状況で発生します:
- アクセストークンがlocalStorageに存在しない
- リフレッシュトークンがlocalStorageに存在しない
- リフレッシュトークンが期限切れ
- リフレッシュトークンが無効
- セッションが見つからない
- セッションが無効化されている
- セッションが期限切れ
- トークンハッシュが一致しない
Constructors
- TokenLostError({required String messageForDeveloper, required String messageForUser, required String? originalMessage, required int? statusCode})
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageForDeveloper → String
-
finalinherited
- messageForUser → String
-
finalinherited
- originalMessage → String?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
finalinherited
Methods
-
copyWith(
{String? messageForDeveloper, String? messageForUser, String? originalMessage, int? statusCode}) → AppError -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited