refreshToken
suspend fun refreshToken(oauthClient: OAuthClient, nonce: String?, refreshToken: String, keyPair: DpopKeyPair? = null): OAuthToken
See also
suspend fun refreshToken(clientId: String, nonce: String?, refreshToken: String, keyPair: DpopKeyPair? = null): OAuthToken
Refresh an access token using the provided OAuth client, nonce, and refresh token.
The nonce should be passed in from the previous requestToken request, if available.
You can also pass in an optional DPoP key pair to sign the request with DPoP, otherwise it will use the one used for requestToken. If no key pair was used for the initial token request by this OAuthApi instance, a new one will be generated for you.