exchange method

Future<void> exchange(
  1. String code,
  2. String verifier
)

Exchange an authorization code + verifier for tokens.

Implementation

Future<void> exchange(String code, String verifier) => _postToken({
      'grant_type': 'authorization_code',
      'code': code,
      'redirect_uri': config.redirectUri,
      'client_id': config.clientId,
      'code_verifier': verifier,
    });