firebase-authentication

Use Firebase DB with local DB

徘徊边缘 提交于 2020-01-01 05:17:40
问题 In my app I have SQLite db . I want to introduce sync between devices of my users. Firebase DB looks like an acceptable solution, but Firebase DB is cloud db at first. So, I can't use it as local db if user will reject auth dialog and let him use app, but without cloud-sync. Now I think about combining my local SQLite db with cloud Firebase db . For example, when user adds new row to local SQLite db , my app will also put data into Firebase DB . Other devices of this user will catch this

New Firebase Facebook login

旧城冷巷雨未停 提交于 2020-01-01 05:14:32
问题 I'm trying to make a Facebook login with the new Firebase platform. this is the code for the facebook login let facebookLogin = FBSDKLoginManager() facebookLogin.logInWithReadPermissions(["email"], fromViewController: self) { (result, error) -> Void in if error != nil { print("error is \(error)") } else { let accessToken = FBSDKAccessToken.currentAccessToken().tokenString let credential = FIRFacebookAuthProvider.credentialWithAccessToken(accessToken) AUTH?.signInWithCredential(credential,

How to create a friends list using Firebase? [closed]

梦想与她 提交于 2020-01-01 03:25:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago . I have been researching around the web on how to create a friends list system using firebase. So far I had no luck and was given resources that was not quite what I was looking for. The premise of the app is using the User Login & Authentication to create a account(completed),

Firebase email verification at SignUp

♀尐吖头ヾ 提交于 2019-12-31 04:47:23
问题 How should I go about verifying an email address prior to the user signing up with Firebase? I know that an email address is verified with .sendEmailVerification , however this only works on the current user. Hence a user must be already created before sending a verification email. This would not be of much help since you obviously have to verify an email before adding it to your database. Therefore, what is a good workaround? 回答1: You can't verify the email prior to sign up with Firebase

Extend Firebase User

旧街凉风 提交于 2019-12-31 03:54:13
问题 After authenticating the user and updating the FirebaseUser table, I would need to save other extra data such as age, gender, address etc. I would like to use the Realtime Database by creating a user node and hooking to the FirebaseUser through UID. Is my way of working correct? I would be grateful if somebody can help me understand. Thank you. 回答1: A common practice in Firebase is to create for your user a helper class ( model class , POJO class ) and this the corect way to achieve this:

How to use same Authenticated user token between main iOS app and its Share Extension

故事扮演 提交于 2019-12-31 03:27:08
问题 We have the main app integrated with Firebase SDK. User sign in via main application using email, google or facebook. Now, we have share extension implemented which ideally should share same Authentication session internally so that data can be sent on Firebase with the same user without asking him to login again through the extension. So, does anyone know the way to share Firebase authentication session between the Main app and share extension? Either we sent some internal call to the main

Is a Firebase UID always 28 characters?

对着背影说爱祢 提交于 2019-12-30 17:22:26
问题 I am creating security rules for my Firebase project and wanted to add UIDstring.length == 28 to my database rules. All of my users UIDs are 28 characters, but I wanted to check if they can be any longer or shorter? Thanks 回答1: A Firebase developer had this to say on their forums: I would not rely on a constant length for the UIDs forever. We chose the current value because it provides a big enough ID space while still being under the 36-character limit for Firebase Analytics user properties.

Send Firebase Token from Android to Google Cloud Endpoints

这一生的挚爱 提交于 2019-12-30 13:38:30
问题 I am integrating Firebase Authentication into my Android App. After successful login, the Android App will call some Google Cloud Endpoints running on Google App Engine. So I need to pass the Firebase Token I received from the Authentication to the Google Cloud Endpoints. I am using the following code to call the endpoints (source) MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null) myApiService = builder.build(); myApiService.sayHi

Create cell phone number authentication with Firebase

六月ゝ 毕业季﹏ 提交于 2019-12-30 12:52:28
问题 At present, the options on the Firebase website limit you to prepackaged solutions for authenticating users through Facebook or a person's email, etc. I wish to allow user to login and authenticate using their cell phone number, much like Snapchat allows. Is there a pre-packaged solution for this? How can this be built out? 回答1: That is currently not supported. Phone number auth is a tricky feature to implement from a privacy, security and product perspective. That said, if you wish to build

Firebase User photoURL and displayName

青春壹個敷衍的年華 提交于 2019-12-30 11:22:11
问题 I'm having a time trying to wrap my head around what I thought was a simple concept. I have an app where I sign up a user, allow that user to set a 'photoURL' to their 'user' information in the Firebase Auth system. This works. When the user creates a post in my app, I want to display the title, image and 'photoURL' of the creator. Currently, I save the post: -Post { -id -title -image -photoURL <- from current logged in user } I also allow users to visit the posters page via routing /poster/