OAuthToken
constructor(accessToken: String, refreshToken: String, keyPair: DpopKeyPair, expiresIn: Duration, scopes: List<OAuthScope>, subject: Did, nonce: String)
Parameters
accessToken
The access token used to authenticate API requests.
refreshToken
The refresh token used to obtain a new access token when the current one expires.
keyPair
The DPoP key pair used for signing requests.
expiresIn
The duration for which the access token is valid.
scopes
The list of scopes granted to the access token.
subject
The DID of the user account associated with the token.
nonce
A unique string to prevent replay attacks, typically used in conjunction with DPoP.