web-manager 3.2.3 → 3.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/index.js +15 -4
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -794,10 +794,21 @@ function Manager() {
794
794
  // self.log('Error', error.message);
795
795
  });
796
796
  } else {
797
- firebase.auth().signInWithRedirect(new firebase.auth.OAuthProvider(method))
798
- .catch(function (e) {
799
- _displayError(e);
800
- })
797
+ // @@@ REMOVED NOV 6, 2023
798
+ // firebase.auth().signInWithRedirect(new firebase.auth.OAuthProvider(method))
799
+ // .catch(function (e) {
800
+ // _displayError(e);
801
+ // })
802
+
803
+ // @@@ ADDED NOV 6, 2023
804
+ var authDomain = self.properties.options.libraries.firebase_app.config.authDomain;
805
+ var newURL = new URL('https://' + authDomain + '/auth/handler');
806
+
807
+ newURL.searchParams.set('provider', method);
808
+ newURL.searchParams.set('destination', window.location.href);
809
+
810
+ window.location.href = newURL.toString();
811
+
801
812
  }
802
813
  },
803
814
  signUp: function(method, email, password, passwordConfirm) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-manager",
3
- "version": "3.2.3",
3
+ "version": "3.2.5",
4
4
  "description": "Easily access important variables such as the query string, current domain, and current page in a single object.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -31,9 +31,9 @@
31
31
  }
32
32
  },
33
33
  "dependencies": {
34
- "@sentry/browser": "^7.72.0",
34
+ "@sentry/browser": "^7.77.0",
35
35
  "cookieconsent": "^3.1.1",
36
36
  "firebase": "^9.23.0",
37
37
  "lazysizes": "^5.3.2"
38
38
  }
39
- }
39
+ }