create

abstract fun create(clientId: ClientId, tokenRequest: AuthorizationCodeAccessTokenRequest): Result<AccessToken, AccessTokenError>

Creates a new access token for a valid authorization code.


abstract fun create(clientId: ClientId, tokenRequest: TokenRequest): Result<AccessToken, AccessTokenError>

creates a new access token for a given client.


open fun create(clientId: ClientId, tokenRequest: AuthorizationCodeAccessTokenRequest, authorizationCode: AuthorizationCode): Result<AccessToken, AccessTokenError>

Deprecated

AuthorizationCode is already present in the tokenRequest, so use that

Replace with

create(clientId, tokenRequest: AuthorizationCodeAccessTokenRequest)