firebase-authentication

iOS/Swift/Firebase Authentication: Help Needed on Accessing “isNewUser”

孤街醉人 提交于 2020-05-16 03:19:07
问题 In my iOS/Swift/Firebase app, I am trying to access the "isNewUser" parameter after a user successfully signs in via email/password so that I can pop a window to compel them to reset their password from the temporary one initially assigned upon user creation. Any insights would be appreciated. Thanks. 回答1: The .isNewUser method is available from the FirebaseAuth AdditionalUserInfo class. Here is the link. In order to utilize this code, please see a demo sign in function I wrote below. Auth

How to delete firebase account when user data is deleted on flutter?

◇◆丶佛笑我妖孽 提交于 2020-05-16 03:18:11
问题 is it possible to delete firebase account in authentication on flutter? if yes, how to do that? I have been search but not found the way. Firestore.instance.collection("users").document(uid).delete().then((_){ // delete account on authentication after user data on database is deleted }); 回答1: To delete a user account, call delete() on the user object. For more on this, see the reference documentation for FirebaseUser.delete(). 回答2: Code for deleting user: FirebaseUser user = await

Check if user logged in from backend Firebase Authentication

一世执手 提交于 2020-05-15 09:21:52
问题 In my frontend, the user logs in using Firebase Authentication Browser. That part works perfectly fine. In addition to Firebase backend, I also have NodeJS backend that serves additional content. However, I need to serve the content to only Authenticated user. My question is: Is there a way for my NodeJS backend to know that a user has been authenticated when they make a request? 回答1: An authenticated client is issued an ID token that uniquely identifies the user. The client can get this this

Check if user logged in from backend Firebase Authentication

北城以北 提交于 2020-05-15 09:21:45
问题 In my frontend, the user logs in using Firebase Authentication Browser. That part works perfectly fine. In addition to Firebase backend, I also have NodeJS backend that serves additional content. However, I need to serve the content to only Authenticated user. My question is: Is there a way for my NodeJS backend to know that a user has been authenticated when they make a request? 回答1: An authenticated client is issued an ID token that uniquely identifies the user. The client can get this this

Check if user logged in from backend Firebase Authentication

本小妞迷上赌 提交于 2020-05-15 09:20:50
问题 In my frontend, the user logs in using Firebase Authentication Browser. That part works perfectly fine. In addition to Firebase backend, I also have NodeJS backend that serves additional content. However, I need to serve the content to only Authenticated user. My question is: Is there a way for my NodeJS backend to know that a user has been authenticated when they make a request? 回答1: An authenticated client is issued an ID token that uniquely identifies the user. The client can get this this

Sign up with email, first name, last name using SwiftUI and Firestore

强颜欢笑 提交于 2020-05-15 09:15:48
问题 I want to authenticate the user and create an user database with Firestore using users name ( first and last ). I can create the user but I couldn’t manage to create the database at the same time. This is my SessionStore which works for signup and signin. By Signup I want to grab the name of the user and create a database. ( no code down below because nothing worked) I am a beginner so I would appreciate an elaborate answer. Thanks a lot! import Firebase import Combine class SessionStore:

How to verify custom Firebase Auth Token, created by createCustomToken()

半腔热情 提交于 2020-05-15 04:59:28
问题 I created custom Auth Token via createCustomToken(), see https://firebase.google.com/docs/auth/admin/create-custom-tokens. But later on when I try to verify this token via verifyIdToken() function it throws following error Error: verifyIdToken() expects an ID token, but was given a custom token. See https://firebase.google.com/docs/auth/admin/verify-id-tokens for details on how to retrieve an ID token. Which is rational, because there is no such ID... But what I need - is to simply verify the

Flutter app crashes on firebase phone auth in iOS platform

最后都变了- 提交于 2020-05-15 04:57:31
问题 I have implemented Firebase Phone auth in my project, On android side everything works fine, but for iOS side, when i try to send verification code from my end, app crashes and lost connection. I have submitted my code below. main.dart class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return new MaterialApp( home: new MyHomePage(), routes: <String, WidgetBuilder> { '/homepage': (BuildContext context) => MyApp(), '/landingpage': (BuildContext context) =>

Requests for referrer are blocked when trying to sign in anonymously to Firebase

自古美人都是妖i 提交于 2020-05-14 16:31:07
问题 I’m trying to sign in anonymously from a Web app using the JS SDK and it works great on some environments, but on one environment, the exact same code that’s working elsewhere is giving me a 403: (index):64 {“error”:{“code”:403,“message”:“Requests from referer https://myapp.firebaseapp.com/ are blocked.“,”errors”:[{“message”:“Requests from referer https://myapp.firebaseapp.com/ are blocked.“,”domain”:“global”,“reason”:“forbidden”}],“status”:“PERMISSION_DENIED”}} Yet I think I checked

Who owns this email? … @cloudtestlabaccounts.com

六月ゝ 毕业季﹏ 提交于 2020-05-14 15:13:07
问题 I'm developing an Android app that uses Firebase login, still using the old Firebase console. After published the apk into the alpha channel of Google Player Developer Console, I found the following strange account in my Firebase: name = Nuage Laboratoire email = 123xyz...@cloudtestlabaccounts.com Anyone know who is the owner? Is it a test made by Firebase / Google or I have been hacked? In Firebase Login & Auth I just disabled Email & Password Authentication also if I didnt found a