firebase-authentication

Is there any way to keep a person authenticated with firebase across subdomains

自作多情 提交于 2020-12-25 09:29:46
问题 I use firebase for authentication on my website and I want to keep the users auth session active across subdomains. Unfortunately, firebase uses Local Storage to store the user's session. Which unfortunately is independent to each subdomain. I already know that you can generate a JWT token using firebase from the server side, but then it doesn't allow the user to log out of the site because the user would still end up logged in other subdomains. 回答1: this is correct. Firebase only supports

Firebase Phone Verification verifyPhoneNumber() deprecated + Application Crashed

杀马特。学长 韩版系。学妹 提交于 2020-12-25 07:44:13
问题 Getting error after upgrading Firebase Auth (20.0.0) dependency for Phone Authentication, PhoneAuthProvider.getInstance().verifyPhoneNumber() Dependency: implementation 'com.google.firebase:firebase-auth:20.0.0' Error: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/browser/customtabs/CustomTabsIntent$Builder; at com.google.firebase.auth.internal.RecaptchaActivity.zza(com.google.firebase:firebase-auth@@20.0.0:92) at com.google.firebase.auth.api.internal.zzeq.zza(com.google

Firebase Phone Verification verifyPhoneNumber() deprecated + Application Crashed

岁酱吖の 提交于 2020-12-25 07:42:31
问题 Getting error after upgrading Firebase Auth (20.0.0) dependency for Phone Authentication, PhoneAuthProvider.getInstance().verifyPhoneNumber() Dependency: implementation 'com.google.firebase:firebase-auth:20.0.0' Error: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/browser/customtabs/CustomTabsIntent$Builder; at com.google.firebase.auth.internal.RecaptchaActivity.zza(com.google.firebase:firebase-auth@@20.0.0:92) at com.google.firebase.auth.api.internal.zzeq.zza(com.google

Uncaught TypeError: firebase.auth is not a function

99封情书 提交于 2020-12-23 13:30:23
问题 I try to build an authentification app with firebase (email & password) but i have problem with firebase methods. When I call firebase.auth, they said "it's not a function". Is it because my project and firebase SDK are not linked ? Do you have some suggestions ? :) <!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <!-- The core Firebase JS SDK is always required and must be listed first --> <script src="https://www.gstatic.com/firebasejs/7.6.0/firebase-app.js"></script> <!--

Uncaught TypeError: firebase.auth is not a function

不问归期 提交于 2020-12-23 13:23:35
问题 I try to build an authentification app with firebase (email & password) but i have problem with firebase methods. When I call firebase.auth, they said "it's not a function". Is it because my project and firebase SDK are not linked ? Do you have some suggestions ? :) <!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <!-- The core Firebase JS SDK is always required and must be listed first --> <script src="https://www.gstatic.com/firebasejs/7.6.0/firebase-app.js"></script> <!--

Uncaught TypeError: firebase.auth is not a function

Deadly 提交于 2020-12-23 13:16:31
问题 I try to build an authentification app with firebase (email & password) but i have problem with firebase methods. When I call firebase.auth, they said "it's not a function". Is it because my project and firebase SDK are not linked ? Do you have some suggestions ? :) <!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <!-- The core Firebase JS SDK is always required and must be listed first --> <script src="https://www.gstatic.com/firebasejs/7.6.0/firebase-app.js"></script> <!--

Uncaught TypeError: firebase.auth is not a function

爱⌒轻易说出口 提交于 2020-12-23 13:15:32
问题 I try to build an authentification app with firebase (email & password) but i have problem with firebase methods. When I call firebase.auth, they said "it's not a function". Is it because my project and firebase SDK are not linked ? Do you have some suggestions ? :) <!doctype html> <html lang="fr"> <head> <meta charset="utf-8"> <!-- The core Firebase JS SDK is always required and must be listed first --> <script src="https://www.gstatic.com/firebasejs/7.6.0/firebase-app.js"></script> <!--

Firebase database listeners don't work on android with wifi

走远了吗. 提交于 2020-12-23 04:18:00
问题 In my code user signs in to Firebase with Google like explained in: https://firebase.google.com/docs/auth/android/google-signin This works fine. When a user opens the program, it loads the initialization values from the firebase database. Here is the code: private void loadPrefsFromDB() { mAuth = FirebaseAuth.getInstance(); user = mAuth.getCurrentUser(); uid = user.getUid(); FirebaseDatabase.getInstance().getReference().child("users").child(uid) .addListenerForSingleValueEvent(new

Firebase database listeners don't work on android with wifi

徘徊边缘 提交于 2020-12-23 04:17:21
问题 In my code user signs in to Firebase with Google like explained in: https://firebase.google.com/docs/auth/android/google-signin This works fine. When a user opens the program, it loads the initialization values from the firebase database. Here is the code: private void loadPrefsFromDB() { mAuth = FirebaseAuth.getInstance(); user = mAuth.getCurrentUser(); uid = user.getUid(); FirebaseDatabase.getInstance().getReference().child("users").child(uid) .addListenerForSingleValueEvent(new

Firebase,React: Client-Server timezone mismatch causing expired tokens, post request failure

烈酒焚心 提交于 2020-12-15 19:34:40
问题 I'm trying to make a POST request from my Gigregister component to my firestore, using the following setup: handleSubmit(e) { console.log(`handle submit reached`) let user = auth().currentUser.uid; console.log(`this is the user id ${user}`) const gigData = { name: this.state.name, venue: this.state.venue, time: this.state.time, date: this.state.date, genre: this.state.genre, tickets: this.state.tickets, price: this.state.price, user: user }; auth() .currentUser.getIdToken() .then(function