@auth0/auth0-spa-js 2.8.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -550,7 +550,7 @@ var browserTabsLock = createCommonjsModule((function(module, exports) {
550
550
 
551
551
  var Lock = unwrapExports(browserTabsLock);
552
552
 
553
- var version = "2.8.0";
553
+ var version = "2.9.1";
554
554
 
555
555
  const DEFAULT_AUTHORIZE_TIMEOUT_IN_SECONDS = 60;
556
556
 
@@ -3038,7 +3038,7 @@ class Auth0Client {
3038
3038
  });
3039
3039
  }
3040
3040
  async connectAccountWithRedirect(options) {
3041
- const {openUrl: openUrl, appState: appState, connection: connection, authorization_params: authorization_params, redirectUri: redirectUri = this.options.authorizationParams.redirect_uri || window.location.origin} = options;
3041
+ const {openUrl: openUrl, appState: appState, connection: connection, scopes: scopes, authorization_params: authorization_params, redirectUri: redirectUri = this.options.authorizationParams.redirect_uri || window.location.origin} = options;
3042
3042
  if (!connection) {
3043
3043
  throw new Error("connection is required");
3044
3044
  }
@@ -3048,6 +3048,7 @@ class Auth0Client {
3048
3048
  const code_challenge = bufferToBase64UrlEncoded(code_challengeBuffer);
3049
3049
  const {connect_uri: connect_uri, connect_params: connect_params, auth_session: auth_session} = await this.myAccountApi.connectAccount({
3050
3050
  connection: connection,
3051
+ scopes: scopes,
3051
3052
  redirect_uri: redirectUri,
3052
3053
  state: state,
3053
3054
  code_challenge: code_challenge,