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