firebase-authentication

Facebook access token nil after app relaunch

谁都会走 提交于 2019-12-11 06:14:32
问题 I'm developing an app on iOS with Firebase Auth and Facebook. I want to use Facebook graph sdk after login with Facebook. It's working fine the first time. But when I re-launch the app, the graph API don't work : An active access token must be used to query information about the current user. and the following code is nil : FBSDKAccessToken.current()?.tokenString BUT the user is logged with Firebase Auth : // check if user is logged FIRAuth.auth()?.addStateDidChangeListener({ (auth, user) in

LinkedIn login with custom token ( ERROR_INVALID_CUSTOM_TOKEN )

拜拜、爱过 提交于 2019-12-11 06:12:36
问题 I am trying to login with LinkedIn using the native app and the LinkedIn SDK. So far I can login using the web if the LinkedIn app is not installed. I can also login with LinkedIn and get a token in return. But when I try to authenticate with Firebase I get this error: Optional(Error Domain=FIRAuthErrorDomain Code=17000 "The custom token format is incorrect. Please check the documentation." UserInfo= {NSLocalizedDescription=The custom token format is incorrect. Please check the documentation.

Keeping firebase data secure

人盡茶涼 提交于 2019-12-11 05:47:34
问题 So the last thing I want is anyone accessing the database that isn't supposed to. Users on my app create an account which has a key and children in my database (an easy to acces user profile) and it also makes an auth account. The rules of the database state that only authenticated users can access the database. Is it possible for someone who is authenticated to somehow access the rest of the database (through hacking maybe)? This is my first app using firebase and I want to make sure that

How do I migrate Digits to Firebase?

与世无争的帅哥 提交于 2019-12-11 05:46:17
问题 When I go through the documentation to migrate my app to Firebase, They give the following image to describe the migration's first step: But I don't get this white pop up. I get this view without pop up instead. How do I migrate? 回答1: As Digits migration was not working, I started using the Firebase Auth for my app. 来源: https://stackoverflow.com/questions/44062567/how-do-i-migrate-digits-to-firebase

Firebase Authentication plugin for Flutter Desktop Embedding

与世无争的帅哥 提交于 2019-12-11 05:39:06
问题 I'm trying to integrate Firebase Authentication for Flutter Desktop Embedding. Is there any Flutter plugin for Firebase Authentication for development in case Desktop Embedding. I have tried using the Flutter plugin, firebase_auth plugin. But this works only in case of Android and iOS Platforms, getting missing implementation error while running on Desktop Embedding, in my case Windows, as the plugin doesn't have the implementation for Desktop Embedding. info flutter.tools [ERROR:c:\b\s\w\ir

Is there a way to customize the sms message sent by Firebase phone Authentication in Swift?

佐手、 提交于 2019-12-11 05:28:38
问题 I'm using Firebase phone authentication in my app. I am wondering how I can customize the text message sent to the user. For example, I would like the SMS the user receives to say: "Welcome to XXXX App. Your verification code is 123456." 回答1: No , you cannot customize the SMS send by Firebase Phone Authentication . Go to Firebase console you will find this It shows no option to customize , only you can change language. 来源: https://stackoverflow.com/questions/45158302/is-there-a-way-to

Getting huge Firebase access token

本秂侑毒 提交于 2019-12-11 05:25:53
问题 I'm using Firebase authentication together with Cloud Endpoints Frameworks. In context of this, I have two questions which belong together: In my Android app I'm requesting the access token after a successfully login in the following way: FirebaseUser user = mFirebaseAuthenticator.getCurrentUser(); user.getIdToken(true).addOnCompleteListener(new OnCompleteListener<GetTokenResult>() { public void onComplete(@NonNull Task<GetTokenResult> task) { if (task.isSuccessful()) { mIDToken = task

Firebase Facebook login with redirect returning null email

孤人 提交于 2019-12-11 05:15:29
问题 If I have the following code function facebookSignin(){ var provider = new firebase.auth.FacebookAuthProvider(); provider.addScope('email'); firebase.auth().signInWithRedirect(provider); } firebase.auth().getRedirectResult().then(function(result) { if (result.credential) { var token = result.credential.accessToken; } var user = result.user; console.log(result); }).catch(function(error) { var errorCode = error.code; var errorMessage = error.message; var email = error.email; var credential =

REST api authentication using firebase admin sdk

大城市里の小女人 提交于 2019-12-11 05:12:20
问题 I have a REST api and the authentication is done using jwt tokens. To make may api more secure (users and authentication mechanism) I would like to use firebase authentication. I would like to know can we use firebase as a authentication server for my REST APIs. My understanding is that the client app will send the username and password to the firebase server and they will provide a token. Using that token client app will send an api call to our server. I need to integrate firebase admin SDK

On Auth State changed AngularFire

a 夏天 提交于 2019-12-11 05:08:27
问题 Trying to authenticate an user using firebase. Started my app using firebase 2.xx but even after upgrading to Firebase 3.xx, throwing error "onAuthStateChanged is not a function". This is how my login function looks like- .controller('HomeCtrl', ['$scope','$location','CommonProp','$firebaseAuth', '$firebaseObject',function($scope,$location,CommonProp,$firebaseAuth,$firebaseObject) { var firebaseObj = $firebaseObject(rootRef); var loginObj = $firebaseAuth(firebaseObj); $scope.SignIn = function