credential

suspend fun credential(accessToken: String, params: CredentialRequestParameters): KmmResult<CredentialResponseParameters>(source)

Verifies the accessToken to contain a token from authorizationService, verifies the proof sent by the client (must contain a nonce sent from authorizationService), and issues credentials to the client. Send the result JSON-serialized back to the client.

Parameters

accessToken

The value of HTTP header Authorization sent by the client, with the prefix Bearer removed, so the plain access token

params

Parameters the client sent JSON-serialized in the HTTP body