web-manager 3.2.7 → 3.2.8
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.
- package/index.js +4 -15
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -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