AI SDK Kotlin
Toggle table of contents
0.3.0-beta01
common
Target filter
common
Switch theme
Search in API
Skip to content
AI SDK Kotlin
AI SDK Kotlin
/
ai.torad.aisdk
/
OAuthTokens
OAuth
Tokens
@
Serializable
class
OAuthTokens
(
val
accessToken
:
String
,
val
tokenType
:
String
,
val
idToken
:
String
?
=
null
,
val
expiresIn
:
Long
?
=
null
,
val
scope
:
String
?
=
null
,
val
refreshToken
:
String
?
=
null
)
(
source
)
Since
0.3.0-beta01
Members
Constructors
OAuth
Tokens
Link copied to clipboard
constructor
(
accessToken
:
String
,
tokenType
:
String
,
idToken
:
String
?
=
null
,
expiresIn
:
Long
?
=
null
,
scope
:
String
?
=
null
,
refreshToken
:
String
?
=
null
)
Properties
access
Token
Link copied to clipboard
@
SerialName
(
value
=
"access_token"
)
val
accessToken
:
String
expires
In
Link copied to clipboard
@
SerialName
(
value
=
"expires_in"
)
val
expiresIn
:
Long
?
id
Token
Link copied to clipboard
@
SerialName
(
value
=
"id_token"
)
val
idToken
:
String
?
refresh
Token
Link copied to clipboard
@
SerialName
(
value
=
"refresh_token"
)
val
refreshToken
:
String
?
scope
Link copied to clipboard
val
scope
:
String
?
token
Type
Link copied to clipboard
@
SerialName
(
value
=
"token_type"
)
val
tokenType
:
String