firebase-authentication

Firebase error no debug.keystore in .android folder

烈酒焚心 提交于 2020-01-13 04:12:07
问题 I tried to connect Firebase to my android app but the error says Firebase: Could not find keystore in file ({0}) specified for debug build type. {2} I see that there is no debug.keystore in my .android folder. 回答1: I've got the same issue, for fixing it, I've done the following step Go to your google firebase account Click on Project Settings Download the google-services.json file and save it in {your-project}/app/google-services.json The rebuild your project and it should work 回答2: Open your

AngularFire2 - How to maintain logged in state after page refresh

随声附和 提交于 2020-01-12 09:54:30
问题 I'm using AngularFire2 for an app and I've gotten the registration/login functionality working with Firebase, however, every time I refresh the page, the logged in state is reset and won't persist. I can't quite find functionality to do this, though I feel I'm missing something very small. Can I use the AngularFireAuth to check on page load somewhere? Here is my auth provider code: import { Injectable } from '@angular/core'; import {Observable, Subject, BehaviorSubject} from "rxjs/Rx"; import

AngularFire2 - How to maintain logged in state after page refresh

百般思念 提交于 2020-01-12 09:51:45
问题 I'm using AngularFire2 for an app and I've gotten the registration/login functionality working with Firebase, however, every time I refresh the page, the logged in state is reset and won't persist. I can't quite find functionality to do this, though I feel I'm missing something very small. Can I use the AngularFireAuth to check on page load somewhere? Here is my auth provider code: import { Injectable } from '@angular/core'; import {Observable, Subject, BehaviorSubject} from "rxjs/Rx"; import

How can Firebase + Google OAuth be configured with a specific “hd” (hosted domain) parameter?

大城市里の小女人 提交于 2020-01-12 05:40:06
问题 I'm using Firebase with the Google authentication provider. When using Google OAuth in other applications, I'm able configure authentication to be restricted to specific domains. The Google OpenID Connect documentation details the "hd" parameter which is used for this functionality. https://developers.google.com/identity/protocols/OpenIDConnect#hd-param How can this be configured for Firebase? 回答1: With the new setCustomParameters function, you can add the hd parameter var provider = new

Android - Do Firebase User Auth Tokens Expire?

坚强是说给别人听的谎言 提交于 2020-01-12 05:12:30
问题 I decided to use Volley and go the RESTful route with Firebase since their listeners seem to hang when there's no internet connection. At least with Volley, it lets me know if a network request was not successful due to internet connection or not. I need to know whether FirebaseUser auth tokens expire or not. In my app, I only allow Google and Facebook authentication, and I use the following code assuming that Firebase user auth token DO NOT expire: private String authToken; // Callbacks

Android - Do Firebase User Auth Tokens Expire?

北战南征 提交于 2020-01-12 05:12:09
问题 I decided to use Volley and go the RESTful route with Firebase since their listeners seem to hang when there's no internet connection. At least with Volley, it lets me know if a network request was not successful due to internet connection or not. I need to know whether FirebaseUser auth tokens expire or not. In my app, I only allow Google and Facebook authentication, and I use the following code assuming that Firebase user auth token DO NOT expire: private String authToken; // Callbacks

Declare separate Firebase Cloud Functions and still use Express.js

做~自己de王妃 提交于 2020-01-12 03:40:06
问题 There are many examples of using Express for Firebase Cloud Functions. In every example of I have found the code exposes the Express app as a single Cloud Function: exports.app = functions.https.onRequest(app); For one's Firebase Project Functions that means they will see one entry called "app" and all logs for all Express.js HTTP listeners will go to one place in Firebase. This also means, no matter how large one's Express.js app is, Firebase will deploy a single function in production for

How to authenticate to Firebase using Python?

喜夏-厌秋 提交于 2020-01-11 14:31:12
问题 I am building a Web App with Python and I would like to authenticate users. The pyrebase package seems to be outdated and it generates dependency errors so I cannot use it. I know that there is a function from the firebase-admin API that works like this: from firebase import auth email = example@example.com user = auth.get_user_by_email(email) But what if this user has a password? I would like to check if the both the email and the password are provided correctly. Thanks in advance. 回答1: The

A value of type 'AuthResult' can't be assigned to a variable of type 'FirebaseUser'

喜你入骨 提交于 2020-01-11 12:22:37
问题 I'm implementing the google sign in method in my project using Firebase Google sign in option, when the add the below line in my code its throwing me the error like: A value of type 'AuthResult' can't be assigned to a variable of type 'FirebaseUser' Here's my Code: final FirebaseAuth _firebaseAuth = FirebaseAuth.instance; final GoogleSignIn _googlSignIn = new GoogleSignIn(); Future<FirebaseUser> _signIn(BuildContext context) async { Scaffold.of(context).showSnackBar(new SnackBar( content: new

AngularFire 2 - Auth.logout() callback

泄露秘密 提交于 2020-01-11 10:15:07
问题 I'm trying to logout and then navigate to a login url, but the authguard from this url prevents logged users to view it and since the second line is reached before the promise is resolved you need to click the method event twice to make it work. logout(){ this.angularfire.auth.logout(); this.router.navigate(['']); } Is there a way to implement router.navigate inside a callback when the promise is resolved? I've tried then(), but either my syntax was incorrect or there is a problem with auth