firebase-authentication

React Navigation Preventing Going back to loading screen, reset not working

為{幸葍}努か 提交于 2020-01-21 14:25:56
问题 I have a React Native application which I have implemented. Currently the app opens up on a loading screen which after mounting checks the firebase.auth().onAuthStateChanged(...) feature. The app basically decides whether or not to got to the login screen or to main screen depending on whether or not the user is already authenticated. It is implemented like this: Main Navigator: const MainNavigator = TabNavigator({ auth: { screen: TabNavigator({ login: { screen: LoginScreen }, signup: {

When users SignOut of my Firebase app, why doesn't it also SignOut from the auth provider, say Google?

試著忘記壹切 提交于 2020-01-21 07:42:12
问题 I am using Google as the auth provider to sign in with my app. My code calls the Firebase sign out method which redirects to the login page, but when user again clicks on the Google sign in button, it automatically authenticates and logs in into the app without prompting the user. Here is the code for sign-in: $('#GooglePluseLogin').click(function (e) { showLoaderPF(true); if (!firebase.auth().currentUser) { var provider = new firebase.auth.GoogleAuthProvider(); provider.addScope('https://www

Firebase authentication error “The given sign-in provider is disabled”

风格不统一 提交于 2020-01-21 05:44:26
问题 SOLVED I am trying to put authentication on firebase. I finish my code, and, when I tried it, it says: The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section. I tried to search on YouTube and Google. But I didn´t find anything. 回答1: The message is telling you exactly what to do, go to the firebase console of your project and turn the corresponding auth methods on. If you are only trying to use Gmail

Firebase Auth check if new user on Facebook login

邮差的信 提交于 2020-01-19 17:05:06
问题 I am creating a web app using Firebase auth to authenticate my users and a MongoDB database to store some relevant user information specific to my site. I am trying to add Facebook as another means of authentication. Logging in with Facebook is working, but what I want to do is intercept the user generation/authentication with Firebase to check if Firebase is creating a new user on a first-time Facebook login. This way if a new user is being created in Firebase I can also create a new user in

Nest : getting HTTP/1.1 401 Unauthorized while fetching devices using curl

你离开我真会死。 提交于 2020-01-17 04:59:08
问题 I'm getting HTTP/1.1 401 Unauthorized if I want to fetch Nest devices using curl -v -L https://developer-api.nest.com/devices/?auth=<AUTHCODE> I don't have any device in my Nest account. I think I should get HTTP/1.1 404 Not Found. I tried to fetch thermostats with this command curl -v -L https://developer-api.nest.com/devices/thermostats?auth=<AUTHCODE> then it replies back with HTTP/1.1 200 OK with same AUTHCODE which I think is correct. Again mentioning that I don't have any device in my

How to store data in Firebase along with Authentication data

我怕爱的太早我们不能终老 提交于 2020-01-16 19:34:08
问题 I have integrated Firebase Authentication with Android App. Now I have to store other app related data like user extended profile, user preferences, settings etc. According to Firebase documentation, Realtime database can be used to save any data. Is this the correct approach or is there any other way in firebase to store data? If this is the correct approach, what database name should I use here? I meant where to create the database in Firebase? FirebaseDatabase database = FirebaseDatabase

Firebase email verification not working as expected, without verification the user is able to login

不羁的心 提交于 2020-01-16 17:10:26
问题 I'm having an issue with Firebase and it's email verification flow. I'm able to create a new user, email with a link to verify email address is delivered with no issues. Now, just for testing purposes I'm not clicking on the link to verify the email, but, if I open the app, I'm able to access and do anything. I'm not sure what I'm missing or what I'm doing wrong. I've been stuck with this for the past couple days. Any help is greatly appreciated. my code @IBAction func loginBtnTapped(_ sender

Firebase email verification not working as expected, without verification the user is able to login

放肆的年华 提交于 2020-01-16 17:10:10
问题 I'm having an issue with Firebase and it's email verification flow. I'm able to create a new user, email with a link to verify email address is delivered with no issues. Now, just for testing purposes I'm not clicking on the link to verify the email, but, if I open the app, I'm able to access and do anything. I'm not sure what I'm missing or what I'm doing wrong. I've been stuck with this for the past couple days. Any help is greatly appreciated. my code @IBAction func loginBtnTapped(_ sender

Firebase email verification not working as expected, without verification the user is able to login

冷暖自知 提交于 2020-01-16 17:09:15
问题 I'm having an issue with Firebase and it's email verification flow. I'm able to create a new user, email with a link to verify email address is delivered with no issues. Now, just for testing purposes I'm not clicking on the link to verify the email, but, if I open the app, I'm able to access and do anything. I'm not sure what I'm missing or what I'm doing wrong. I've been stuck with this for the past couple days. Any help is greatly appreciated. my code @IBAction func loginBtnTapped(_ sender

How to accomplish firebase.auth().checkActionCode using Firebase Auth Rest SDK?

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-16 08:53:30
问题 I have a Cloud Function that uses the Firebase Auth Javascript SDK to call firebase.auth().checkActionCode(). I use the Javascript SDK, because I could not find a corresponding function in either the Admin SDK or via a REST API call. The REST API has a similar method to check a password reset code, but I don't see a method to check an email verification code (only to apply one): https://firebase.google.com/docs/reference/rest/auth#section-verify-password-reset-code Is there a way to do the