requestOauthAccessToken method

Future<Response> requestOauthAccessToken(
  1. String code
)

Implementation

Future<http.Response> requestOauthAccessToken(String code) async {
  return await http.post(
      Uri.https(config.endpoint, "api/login/oauth/access_token"),
      body: {
        'client_id': config.clientId,
        'grant_type': 'authorization_code',
        'code': code,
        'code_verifier': codeVerifier
      });
}