firebase-authentication

Google/Firebase Authentication no displayName or photoURL for iOS

回眸只為那壹抹淺笑 提交于 2019-12-08 22:35:27
问题 I am using Ionic2 and GooglePlus Authentication. I can sign in and it creates a User with a uid in the Firebase Authentication list as expected. When I do this: GooglePlus.login({ 'webClientId': webClientId, 'offline': true }).then(googleData => { Where the webClientId matches the Client ID in the iOS Credential below. Problem: However, for iOS , the googleData does contain an emailAddress and uid , but the displayName and photoURL are null . More Info: I do have an iOS Credential set up with

Swift3 iOS -Firebase FIREmailPasswordAuthProvider Not Working

只谈情不闲聊 提交于 2019-12-08 21:03:36
问题 I just upgraded my Firebase Cocoapods from 3.15.0 to 4.0.4 and FirebaseAuth Cocoapods from 3.1.1 to 4.0.0. I'm using email & password to authenticate users. When a user changes their email I was using this method below and everything was working fine: FIREmailPasswordAuthProviderID.credential(withEmail: emailTextField.text!, password: passwordTextField.text!) Now that I updated I get the error message Value of type 'String' has no member 'credential' I looked on the docs and it said to use

Firebase email verification invalid certificate issue

大憨熊 提交于 2019-12-08 19:14:31
I am running into a strange error with email link verification on Firebase. When users create an account, I send them the following email and wait for them to verify before continuing normal application flow: Hello %DISPLAY_NAME%, Follow this link to verify your email address. https://project-projectname.firebaseapp.com/__/auth/action?mode=<action>&oobCode=<code> If you didn’t ask to verify this address, you can ignore this email. Thanks, Your ProjectName team (modified slightly to take out the project name) This email successfully sends, but when a user clicks on the link in the email they

How to create Firebase token on server for use with unit tests?

末鹿安然 提交于 2019-12-08 17:15:35
问题 I need to authenticate a Firebase user using node so I can test some server side methods. For each protected request, I verify the Firebase token using: firebase.auth().verifyIdToken(firebaseAccessToken).then(function(decodedToken) { // forward request }) So in my test I created a token with a uid from my Firebase database firebase.auth().createCustomToken(uid).then(function(token) { //add to header for requests }) Later I read that custom tokens are not verified by the verifyIdToken method,

Actions on Google + Account Linking with Firebase

只谈情不闲聊 提交于 2019-12-08 16:05:43
问题 I'm working on a Google home application using an external API. I need the current user to be logged in and linked with the external API (access/refresh token provided by the external API). My approach: Setting up a firebase application The google home app lives within the functions folder. I would set up a page where the user would first sign in with his Google account using firebase.auth(), then his external API account (using the external API Oauth). I would then create an entry in the

Firebase says “Domain not whitelisted” for a link that is whitelisted

試著忘記壹切 提交于 2019-12-08 15:56:28
问题 I am busy setting up a firebase authentication using an email magic link and using the guide here: https://firebase.google.com/docs/auth/android/email-link-auth It says I need to whitelist a domain, but I cannot find any place in the console to do that, other than the dynamic link I created. I tried running the below code, but I get [ UNAUTHORIZED_DOMAIN:Domain not whitelisted by project ] val actionCodeSettings = ActionCodeSettings.newBuilder() // URL you want to redirect back to. The domain

Using Firebase reauthenticate

吃可爱长大的小学妹 提交于 2019-12-08 15:24:39
问题 I'll appreciate assistance with how to reauthenticate a user in Firebase. I wonder if it makes any sense adding all these great features if the documentation doesn't explain how to use it: Currently, this is what I'm trying, and it ain't working. Errors as cannot read property 'credential' of undefined In constructor: constructor(@Inject(FirebaseApp) firebaseApp: any) { this.auth = firebaseApp.auth(); console.log(this.auth); } then the function changePassword(passwordData) { if(passwordData

How to secure Firebase account etc. from user actions?

梦想的初衷 提交于 2019-12-08 15:22:29
I am developing a hobby project using Firebase and some Node.JS running on Google App Engine as backend. I am a real newbie in this area, and also just hear about Firebase a month ago. My question relates to how various "things" can be secured from user actions, even though Firebase is running as JS on client-side. I am aware that the DB and Storage can be secured using logical rules - that is in place. My question rather concerns the actions an user can perform with firebase.auth() and similar, such as: firebase.auth().createUserWithEmailAndPassword() firebase.auth().currentUser.delete()

FirebaseUser is not null after anonymous authentication is signed out

无人久伴 提交于 2019-12-08 14:21:50
问题 I have 2 activities in my app. I also have a sign-in button that when clicked this method is called: private void signIn() { firebaseAuth.signInAnonymously().addOnCompleteListener(this, task -> { if (task.isSuccessful()) { FirebaseUser firebaseUser = firebaseAuth.getCurrentUser(); if (firebaseUser != null) { goToSecondActivity(); } } }); } This my goToSecondActivity() method: private void goToSecondActivity() { startActivity(new Intent(FirstActivity.this, SecondActivity.class)); finish(); }

Firebase limits

橙三吉。 提交于 2019-12-08 14:02:04
问题 I intend to develop an simple chat application inheriting the funtionalities of FCM. I would like to know the limits imposed over as it may restrict myself of implementing certain tasks. I would also like to know the number of connections at a given instant and the limit on number of messages could be send from a device? 回答1: You don't have any limitations regarding an app which uses a Firebase database. If we are speaking about pricing list, it's true there is a free plan, and if want to