AuthorizationRequest constructor

AuthorizationRequest(
  1. Config config, {
  2. bool fullScreen = true,
  3. bool clearCookies = false,
})

Implementation

AuthorizationRequest(Config config,
    {bool this.fullScreen = true, bool this.clearCookies = false}) {
  url = config.authorizationUrl;
  redirectUrl = config.redirectUri;
  parameters = {
    'client_id': config.clientId,
    'response_type': config.responseType,
    'redirect_uri': config.redirectUri,
    'scope': config.scope
  };
  if (kIsWeb) {
    parameters.addAll({'nonce': config.nonce});
  }
}