Token class
Constructors
Properties
- accessToken → String
-
用来获取用户信息的 access_token. 刷新后, 旧 access_token 不会立即失效.
final
- expiresAt → DateTime
-
过期时间戳.
final
- expiresIn → Duration
-
过期时间, 单位秒. 默认30天有效期.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- refreshToken → String?
-
单次有效, 用来刷新 access_token, 90 天有效期. 刷新后, 返回新的 refresh_token, 请保存以便下一次刷新使用. PKCE模式下不返回.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenType → String
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited