token
abstract suspend fun token(request: TokenRequestParameters, httpRequest: RequestInfo? = null): KmmResult<TokenResponseParameters>(source)
Verifies the authorization code sent by the client and issues an access token. Send the result of SimpleAuthorizationService.tokenWithDpopNonce converted with toHttpResponse(), which sets the headers the token response needs.
Return
KmmResult may contain a OAuth2Exception
Parameters
request
as sent from the client as POST
httpRequest
information about the HTTP request from the client, to validate authentication