web-manager 3.2.7 → 3.2.9

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 +5 -16
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -414,7 +414,7 @@ function Manager() {
414
414
  auth: {
415
415
  state: 'default', // required, prohibited, default
416
416
  sends: {
417
- required: '/signup/',
417
+ required: '/signup',
418
418
  prohibited: '/',
419
419
  },
420
420
  },
@@ -791,21 +791,10 @@ function Manager() {
791
791
  // self.log('Error', error.message);
792
792
  });
793
793
  } else {
794
- // @@@ REMOVED NOV 6, 2023
795
- // firebase.auth().signInWithRedirect(new firebase.auth.OAuthProvider(method))
796
- // .catch(function (e) {
797
- // _displayError(e);
798
- // })
799
-
800
- // @@@ ADDED NOV 6, 2023
801
- var authDomain = self.properties.options.libraries.firebase_app.config.authDomain;
802
- var newURL = new URL('https://' + authDomain + '/auth/handler');
803
-
804
- newURL.searchParams.set('provider', method);
805
- newURL.searchParams.set('destination', window.location.href);
806
-
807
- window.location.href = newURL.toString();
808
-
794
+ firebase.auth().signInWithRedirect(new firebase.auth.OAuthProvider(method))
795
+ .catch(function (e) {
796
+ _displayError(e);
797
+ })
809
798
  }
810
799
  },
811
800
  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.7",
3
+ "version": "3.2.9",
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": {