firebase-authentication

Android Firebase Email Validation

孤人 提交于 2019-12-08 03:26:13
问题 I am developing an app with Firebase and I have to register users to the app using email registration method provided by Firebase. I pretty much did well on Email verification and such things, but one problem, I'm encountering is that "how to validate" entered email address? By validation, I don't mean if its a correct email form, such as blab@blabla.com pattern, for example Iamsomething@gmail.com is an invalid email which cant get email verification, although it is perfectly fine in terms of

How do you update GoogleSign-In to work with the new Firebase Console and APIs?

a 夏天 提交于 2019-12-08 03:16:57
问题 So, I had everything working as of yesterday. Then I logged into my Firebase dashboard and there was a banner that suggested I try out the new Firebase console. "SURE! That sounds great" I thought. Eight hours later, I cannot get Google Sign-In to work. Here is my GIDSignInDelegate method, which fires correctly and everything. func signIn(signIn: GIDSignIn!, didSignInForUser user: GIDGoogleUser!, withError error: NSError!) { if (error == nil) { let authentication = user.authentication let

Swift - Getting error from facebook login

时间秒杀一切 提交于 2019-12-08 03:13:09
问题 just to start off with I have looked at many examples but can't seem to find a solution. Well I thought I did but it doesn't seem to work. What I'm trying to do is use the Firebase auth login method for facebook, which works by the way. My issue is I want to link the password auth credentials and facebook auth credentials when the facebook method throws the error that the email/credentials already exist. I read here that I could use error.email but it doesn't give me the option to access the

Restrict firebase database and storage write access to a specific group

六眼飞鱼酱① 提交于 2019-12-08 02:47:48
问题 I have a react redux firebase app with a content management side (all those pages start with /admin/... ). I need to restrict firebase database and firebase storage write access to a small subset of those users, as well as handle a redirect when an unauthenticated (or authenticated without admin role) user tries to go there. Currently, anyone who figures out that the auth buttons are at /admin can log in with facebook or google, then have access to everything. From what I've read, it looks

Expo, Firebase, Login with google

◇◆丶佛笑我妖孽 提交于 2019-12-08 02:44:26
in my React Native Expo application, I want to authenticate the user with google account. so I followed the Expo Google for a normal sign in with google first, Which was working, then using the idToken and accessToken to authenticate with firebase. signInWithGoogleAsync = async () => { try { const result = await Google.logInAsync({androidClientId: ***, iosClientId: ***, scopes: ["profile", "email"] }); if (result.type === "success") { // I get result object const credential = firebase.auth.GoogleAuthProvider.credential( result.idToken, result.accessToken); /* credential is and xf {} object */

Firebase Auth: Android: Unable to display user email and photo

梦想的初衷 提交于 2019-12-08 02:01:58
问题 I have added Firebase Auth in my android app and I am using Facebook and Google sign in. Signing in is working fine. Now I want to retrieve user profile info from user's either Facebook account or Google account (whichever, user chooses to sign in) and display the info in user profile activity. I am able to retrieve and display user name and user UID, however, user email and user photo are not displaying, though retrieved. Here is how I am retrieving user info (LoginActivity.java):

How to use Facebook token obtained through Firebase authentication appropriately?

与世无争的帅哥 提交于 2019-12-08 01:36:51
问题 I am trying to get a person's first name and last name when the person would like to sign up through Facebook, but wondering if there can be some security issue. Based on the document from Firebase, the answer from Stack Overflow, and the explanation about parameters from Facebook website, I wrote the following codes: firebase.auth().getRedirectResult().then(function(result) { var token = result.credential.accessToken; FB.api('/me', {fields: 'last_name', access_token: token}, function

Firebase does not show up sign page for microsoft.com in Swift / iOS

梦想与她 提交于 2019-12-08 00:47:51
问题 I am implementing the Firebase authentication by using OAuthProvider class to sign in with a personal microsoft account. I have followed this instructions: https://firebase.google.com/docs/auth/ios/microsoft-oauth?authuser=0 However when I am using OAuthProvider of Firebase SDK it does not show up the sign in page of Microsoft, actually nothing gets invoked by getCredentialWith. When I am using GoogleAuthProvider everything works fine and Firebase SDK shows up the sign in page of Google. let

Pushing a view controller using Swift 4 after Google Sign In

痞子三分冷 提交于 2019-12-08 00:05:12
问题 I'm using Firebase and Swift 4 to develop my app, but I'm having trouble pushing a new view controller after Google Sign In finishes. From what I know, I should be putting the pushViewController code in the didSignIn method, but that section is in my AppDelegate.swift file (as it implements GIDSignInDelegate, as per the Firebase documentation). func sign(_ signIn: GIDSignIn!, didSignInFor user: GIDGoogleUser!, withError error: Error?) { // ... if let error = error { // ... return } guard let

angularjs multiple resolve with loadsequence and auth permission

时光怂恿深爱的人放手 提交于 2019-12-08 00:02:29
问题 Referring to this question here, I am having the same problem. How can we set up a multiple resolve, one with currentAuth and another with loadsequence which loads controllers and scripts? Here is my state config : .state('app.example', { url: "/example", templateUrl: "assets/views/example.html", resolve:{ loadSequence: loadSequence('jquery-sparkline', 'exampleCtrl') }, title: 'example', ncyBreadcrumb: { label: 'example' } }) and here is my loadsequece function: function loadSequence() { var