firebase-authentication

Expo: “auth/operation-not-supported-in-this-enviroment”

扶醉桌前 提交于 2020-11-29 08:57:09
问题 I develop a react-native (expo) mobile app and try to sign in with a google account to firebase, but I get an error: "auth/operation-not-supported-in-this-enviroment. This operation is not supported in the enviroment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled" Code: loginGoogle() { var provider = new firebase.auth.GoogleAuthProvider(); provider.addScope('profile'); provider.addScope('email'); firebase.auth()

Expo: “auth/operation-not-supported-in-this-enviroment”

断了今生、忘了曾经 提交于 2020-11-29 08:56:26
问题 I develop a react-native (expo) mobile app and try to sign in with a google account to firebase, but I get an error: "auth/operation-not-supported-in-this-enviroment. This operation is not supported in the enviroment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled" Code: loginGoogle() { var provider = new firebase.auth.GoogleAuthProvider(); provider.addScope('profile'); provider.addScope('email'); firebase.auth()

Expo: “auth/operation-not-supported-in-this-enviroment”

社会主义新天地 提交于 2020-11-29 08:56:09
问题 I develop a react-native (expo) mobile app and try to sign in with a google account to firebase, but I get an error: "auth/operation-not-supported-in-this-enviroment. This operation is not supported in the enviroment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled" Code: loginGoogle() { var provider = new firebase.auth.GoogleAuthProvider(); provider.addScope('profile'); provider.addScope('email'); firebase.auth()

persistence with Firebase and swift 4 [duplicate]

心已入冬 提交于 2020-11-29 03:11:28
问题 This question already has answers here : How to maintain user session after exiting app in Firebase (2 answers) Closed 2 days ago . I have been looking around for some ways to have my app remember that a user is signed in but could find solutions for Firebase 3. I can login just fine with Firebase authentication but when I quit the app it takes me again to the login. This is closest solution I feel like I have. code snippet This is what I followed from a youtube tutorial. Thanks! 回答1: You

Where to place code to set Firebase auth state persistence in Vue.js?

杀马特。学长 韩版系。学妹 提交于 2020-11-28 10:11:56
问题 Overview I'm building a web app in Quasar/Vue.js and Firebase which needs to authenticate users. What I'm trying to achieve A pretty common feature - keep users logged even after they close the browser/tab. Possible Solutions I'm aware that I can use localStorage or cookies to set the user auth state. However, I want to allow Firebase auth do it for me (if it can do it). I checked the docs in this regard - https://firebase.google.com/docs/auth/web/auth-state-persistence and they're nice,

Where to place code to set Firebase auth state persistence in Vue.js?

大兔子大兔子 提交于 2020-11-28 10:07:14
问题 Overview I'm building a web app in Quasar/Vue.js and Firebase which needs to authenticate users. What I'm trying to achieve A pretty common feature - keep users logged even after they close the browser/tab. Possible Solutions I'm aware that I can use localStorage or cookies to set the user auth state. However, I want to allow Firebase auth do it for me (if it can do it). I checked the docs in this regard - https://firebase.google.com/docs/auth/web/auth-state-persistence and they're nice,

Where to place code to set Firebase auth state persistence in Vue.js?

烂漫一生 提交于 2020-11-28 10:03:03
问题 Overview I'm building a web app in Quasar/Vue.js and Firebase which needs to authenticate users. What I'm trying to achieve A pretty common feature - keep users logged even after they close the browser/tab. Possible Solutions I'm aware that I can use localStorage or cookies to set the user auth state. However, I want to allow Firebase auth do it for me (if it can do it). I checked the docs in this regard - https://firebase.google.com/docs/auth/web/auth-state-persistence and they're nice,