firebase-authentication

Firebase how to get user details?

跟風遠走 提交于 2019-12-23 10:09:49
问题 I am using Firebase authentication in my app and signing up a user with email and password. I want to get other users details (separate from the logged-in user) as well while a user is signed in with their own account. How can I get that information? 回答1: Values like email, display name and id (specific to authentication system) are available off of the Firebase User object. You can get a reference to the current logged in user off of the FIRAuth class. I provided links and class names for

Swift / Firebase: How do I properly store a Facebook user into Firebase database when they create an account?

浪尽此生 提交于 2019-12-23 09:52:52
问题 I'm trying to save users to my firebase database. I'm using a FBSDKLoginManager() to create an account / log in. Upon account creation, I want to store the users into my firebase database. I can currently log the user in and their email shows up in the Auth tab of firebase (see screenshot), but my updateChildValues doesn't seem to be having any affect (also see screenshot). Am I placing the updateChildValues in the right place? It's currently place within signInWithCredential . I also have to

Firebase error: Blocked all requests from this device due to unusual activity

只愿长相守 提交于 2019-12-23 09:49:39
问题 I am getting the error below when testing Firebase authentication We have blocked all requests from this device due to unusual activity. Try again later. How do I fix this without deleting any data? There has to be a way to enable development/testing this stuff. 回答1: You're seeing this error because of sending too many auth requests from or using one IP address for a given period of time. Firebase auth requests are limited for security purposes. In order to avoid this error in the future, I'd

Firebase + Ionic3 Error: disallowed_useragent

只谈情不闲聊 提交于 2019-12-23 09:29:53
问题 There are a couple of other questions/answers on this topic, but they were not using Firebase with Ionic. I just switched to the new Ionic View and right now today, my app in the old Ionic View works while the new Ionic View gives me this well known error: 403 Error - Thats an error. Error: disallowed_useragent his user-agent is not permitted to make an OAuth authorization request to Google as it is classified as an embedded user-agent (also known as a web-view). blah blah blah In my code I

Firebase - Email Verification Mail Not Working - An internal error has occurred. [ USER_NOT_FOUND ]

£可爱£侵袭症+ 提交于 2019-12-23 08:59:57
问题 I am trying to send a verification email after successful registration of user. Which gives me the error An internal error has occurred. [ USER_NOT_FOUND ] . This is the code I have at present - public void signUpUser(View view){ EditText mailEditText = (EditText) findViewById(R.id.editText); EditText pwdEditTet = (EditText) findViewById(R.id.editText2); String email = mailEditText.getText().toString(); String password = pwdEditTet.getText().toString(); Log.d("Info",email); Log.d("Info"

Making an Observable from a callback

坚强是说给别人听的谎言 提交于 2019-12-23 08:47:36
问题 I have an auth guard that needs an asynchronous response true/false when the site is visited and the user is already logged in. I'm using Firebase's onAuthStateChanged (link to docs) and it uses a callback function. How can I turn my isLoggedIn() method into something that can return Observable<boolean> ? Typscript: get isLoggedIn(): Observable<boolean> { // want something like this: return Observable.fromCallback(firebase.auth().onAuthStateChanged).map(user => !!user); // this returns () =>

Firebase Auth - How Long is Recent Login

泄露秘密 提交于 2019-12-23 08:29:25
问题 I have a profile tab in which a user can press edit and edit their profile. I only want to require their password if I have to. So wanted to know how long is how many milliseconds of a user being signed in makes it not a recent login, in which firebase will throw the error "auth/requires-recent-login" when editing a users account? new Date(Date.parse(firebase.auth().currentUser.metadata.lastSignInTime)).getTime() Will give me an approximation of the last login (in milliseconds within 2000

Firebase Convert Anonymous User Account to Permanent Account Error

前提是你 提交于 2019-12-23 07:32:41
问题 Using Firebase for web I can successfully create an anonymous user. I can also create a new email/password user. But when trying to convert an anonymous user to a email/password user I get error: auth/provider-already-linked User can only be linked to one identity for the given provider. Firebase documents the procedure here under section "Convert an anonymous account to a permanent account" here: https://firebase.google.com/docs/auth/web/anonymous-auth Here's the account link code. Anonymous

Firebase Convert Anonymous User Account to Permanent Account Error

不羁的心 提交于 2019-12-23 07:32:16
问题 Using Firebase for web I can successfully create an anonymous user. I can also create a new email/password user. But when trying to convert an anonymous user to a email/password user I get error: auth/provider-already-linked User can only be linked to one identity for the given provider. Firebase documents the procedure here under section "Convert an anonymous account to a permanent account" here: https://firebase.google.com/docs/auth/web/anonymous-auth Here's the account link code. Anonymous

How do I fix this AuthStateListener issue

依然范特西╮ 提交于 2019-12-23 05:47:11
问题 I have two activities: SignIn and SignUp . Each of them has an AuthStateListener. The problem is that AuthStateListener from SignIn activity gets called when app is in SignUp activity and authentication state is changed (Found this when I logged in both listener). onCreate method of SignIn : @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_sign_in); mAuth = FirebaseAuth.getInstance(); mAuth.addAuthStateListener