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.
- package/index.js +5 -16
- 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
|
-
|
795
|
-
|
796
|
-
|
797
|
-
|
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