exchangeAuthorizationCodeForToken method
Exchanges an authorization code for an authorization token.
Implementation
FutureOr<AuthorizationTokenResponse> exchangeAuthorizationCodeForToken(
Client? client,
String? authCode,
String? redirectUri,
RequestContext req,
ResponseContext res) {
throw AuthorizationException(
ErrorResponse(
ErrorResponse.unsupportedResponseType,
'Authorization code grants are not supported.',
req.uri!.queryParameters['state'] ?? '',
),
statusCode: 400,
);
}