firebase-authentication

Google and Facebook Firebase Auth using swift 3

大兔子大兔子 提交于 2019-12-04 20:31:28
My google sign is not prompting users to allow permissions in their profile while facebook is prompting. Why? I am implementing my google login in view controller not in app delegate like in the guide. I'm not sure what i did is correct. I've been trying to implement this for hours. Here's my code: apple delegate.swift class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { FIRApp.configure() FBSDKApplicationDelegate.sharedInstance()

How can i send different users to separate view controllers using firebase and Xcode

独自空忆成欢 提交于 2019-12-04 19:40:54
I am fairly new to coding and have started using firebase as a back end server for an application i am creating in Xcode using swift. The app itself will have one login page but 3 separate types of users. The admin will have different permissions to the other 2 users. The code I currently have is: FIRAuth.auth()?.signIn(withEmail: username!, password: password!, completion: { (user, error) in if error == nil { let vc = self.storyboard?.instantiateViewController(withIdentifier: "AdminVC") self.present(vc!, animated: true, completion: nil) } The code is getting the email and password for the

Firebase UI authentication with google fails with message (code:10 message:10)

守給你的承諾、 提交于 2019-12-04 19:38:55
I've made a chat app that uses Firebase's feature Real-time database . I face a problem with google authentication. The problem started when I downloaded the app from the Play Store, the authentication was working perfectly when I was running the app in debug mode. When users try to sign in they get a toast message code:10 message:10 . I would like to note here that: I've added the SHA1 fingerprint. How can I solve this? *Not sure if this is helpful but I've followed step by step this tutorial You need three keys in order to make it work: The debug key. Informations here . The release key.

“An error occurred while accessing the keychain” when signing in using Firebase

穿精又带淫゛_ 提交于 2019-12-04 18:25:53
问题 Background: I'm using Firebase for my apps login. I am using the login via email address functionality. The error started after starting to use the new xCode beta and updating the code to Swift 3 You can see a prototype of the problem here: https://bitbucket.org/gilosborne/firebasetest The error: When I try to log in I get the error, "An error occurred while accessing the keychain". I am not using Apple keychain in any way, I believe it is referring to the mentions of keychain here: https:/

How can I disable user accounts for a firebase project from code?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 17:58:01
问题 I can successfully disable user accounts for a project from console (firebase web page) but how can a user from an applicative disable your own user account by code when he wants to do. Also, I don't find help in the new documentation of firebase. 回答1: This is a bit old to answer the question. But just for someone who looks for the same answer would get an idea from my answer. Using the Admin SDK Firebase admin (node.js)- which is not available for Mobile platform - has the ability to do the

How to prevent Play Store testing from affecting Firebase Analytics

扶醉桌前 提交于 2019-12-04 17:41:27
I just launched a new app and I am using Firebase Analytics. However, every time I upload a new release to the play store, it is automatically tested by Google on 11 devices. Which is great! Is there a way to prevent those tests from impacting the analytics? I am starting with a small user base, so it can affect it greatly. I also created an anonymous Auth. Is there a way to prevent it from creating anonymous accounts for those pre-release tests? Can I identify them so I can delete them on Firebase? After lots of research, trials and error, I found something that finally works. I added this

FIrebase Google auth operation not supported in this environment

会有一股神秘感。 提交于 2019-12-04 17:33:48
I am working on ionic and firebase project, made a login page to sign in with google. I am using this Below. var provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithRedirect(provider).then(function (result) { var token = result.credential.accessToken; // The signed-in user info. var user = result.user; $state.go('app.homepage'); }).catch(function (error) { }); firebase.auth().getRedirectResult().then(function (result) { if (result.credential) { var token = result.credential.accessToken; } // The signed-in user info. var user = result.user; }).catch(function (error) { }

Property 'subscribe' does not exist on type Auth

吃可爱长大的小学妹 提交于 2019-12-04 17:26:28
With the code below, I am getting the error Property 'subscribe' does not exist on type Auth . If I remove the entire block of subscribe code from app.component.ts then I am getting no error, but the browser is opening directly on the home page and not the login page. At the bottom of app.component.html I have included <router-outlet></router-outlet> , app.component.ts import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { Observable } from 'rxjs/Observable'; import { AngularFireModule } from 'angularfire2'; import { AngularFireDatabaseModule,

How can I redirect back to my app after the user has verified their email using Firebase Auth and Swift?

梦想的初衷 提交于 2019-12-04 17:07:11
When a user signs up in my app, they get a pop up that says, please verify your email and then login. When the user clicks OK, it takes them to login page. At this point the user should go to the Mail app (iPhone) and click the link that has been sent to them from Firebase. Clicking this link currently opens Safari and tells the user the account is verified, then the user has to manually go back to the app. How can I verify the user AND then also take them back to the app? I've read up about continueURL and also the documentation that Firebase provides but it just doesn't make any sense and I

How to work with FirebaseAuth inside Android Module

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 16:38:53
I am developing a Chat library in which I want to show the conversations of the logged in user. The reason to make the library is that I want to integrate it in multiple projects. The problem I am facing right now is that FirebaseAuth is indicating that the user is not logged-in ( FirebaseAuth.getInstance(mFirebaseApp).getCurrentUser() always returning null ) even if the user is authenticated inside the app. How the Module/Library can know that the user is authenticated? I am trying the following code: mAPIKey = getArguments().getString(ConversationModuleConstants.API_KEY_KEY); mApplicatoinId