firebaseui-web | FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindin | Authentication library
kandi X-RAY | firebaseui-web Summary
kandi X-RAY | firebaseui-web Summary
FirebaseUI sign-in widget supports Cordova applications. This includes email/password and all OAuth providers (Google, Facebook, Twitter and GitHub). Phone authentication is not supported due to the limitation in the underlying Firebase core SDK. Email link authentication is not yet supported due to the inability to detect the incoming link when the user clicks it to complete sign-in.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Dispatch the dispatch action .
- Provides information about the UI of the user .
- Builds the FirebaseUI instance .
- Build the CSS for FirebaseUI .
- Handles changes to the config .
- Parses query string
- Repeats a gulp task .
- Invokes Closure Compiler .
- Higher order function to generate a next URL .
- Assert that a given path is a directory
firebaseui-web Key Features
firebaseui-web Examples and Code Snippets
Community Discussions
Trending Discussions on firebaseui-web
QUESTION
in a VueJS / QuasarJS application Im using firebase-js-sdk
[1] together with firebaseui-web
[2] to handle authentication.
After successful auth with any of the configured providers (e.g. password, google, apple, etc) I want to check which provider the user used. But immediately after successful authentication the user.providerData[]
array that should contain the information is empty.
BUT if I reload my app the user.providerData[]
array is suddenly populated correctly.
I´m checking for user data with something like this
...ANSWER
Answered 2021-Nov-13 at 23:13Your code is only running once instead of running every time the auth state is updated.
If you want to listen to any changes to the auth state, use a callback along with onAuthStateChanged
as described here.
https://firebase.google.com/docs/auth/web/manage-users#get_the_currently_signed-in_user
QUESTION
Im currently prototyping VueJS based a sign-in flow with Firebase Auth and the web widget library firebaseui-web.
After successful authentication (either password
or google
provider) the widget loading bar is endlessly repeating and firebaseui-web does not fire its signInSuccessWithAuthResult
callback. But the network calls to identitytoolkit.googleapis.com
clearly seem to have my user identified and authenticated (see screenshot)
The config object looks like this:
...ANSWER
Answered 2021-Dec-12 at 11:34So, I found the issue. It seems that the firebaseui instance returned by firebaseui.auth.AuthUI
does not like to be a Vue data property [1]
Would love to know why, but the bug hunt cost me enough energy. Im done :)
Here is my fix for that https://github.com/perelin/firebase-auth-providerdata-test/commit/e8c31aecb4d3bc8bcd93928c55c439201a965c65
QUESTION
I spent way too much time with odd results with Firebase Auth UI. Note: I'm working in Sveltekit, so for the Auth UI I'm using Firebase Auth v8. I know folks are working on the github UI for v9, but at the time of this stackoverflow submission:
...ANSWER
Answered 2021-Dec-06 at 20:37So it turns out the uiConfig callback function signInSuccessWithAuthResult(...
returns a firebaseui.auth.AuthResult
object. And that is NOT a user
object.
QUESTION
I'm new at React and NextJS but I'd like to use some authentication service for my NextJS web application for managing user accounts.
I'd like to use the pre-made user login we all know and love which contains an all in one solution for logging in with Google, Facebook, Github, email, etc.
Instructions I've followed:
- https://firebase.google.com/docs/auth/web/firebaseui?authuser=0
- https://firebaseopensource.com/projects/firebase/firebaseui-web/
But I'm having trouble with how to integrate this snippet into my own NextJS code. I'm not sure where to place certain tags. Here is the code snippet I'd like to emulate which creates a config and passes the object in ui.start()
(Which I'm not sure where to place for NextJS):
ANSWER
Answered 2021-Nov-29 at 07:53This is too hard, I've discovered StyledFirebaseAuth
This makes my application work as intended.
QUESTION
I am using FirebaseUI React Components (https://github.com/firebase/firebaseui-web-react) to implement FirebaseUI Auth in a React app, which has previously worked without any issues. However, I recently upgraded Firebase to v9, and now when I try to install FirebaseUI React Components I receive a dependency conflict. Specifically, when I try:
...ANSWER
Answered 2021-Oct-23 at 13:34According to the Firebase docs, v9 is not compatible with FirebaseUI,
...
is there any way to make FirebaseUI work after upgrading Firebase to v9?
If you want to be adventurous and try to get these things working together, you can start with npm i --save firebaseui@next
. At the time of this writing, that will install firebaseui@0.600.0
which is presumably a pre-release for firebaseui@6
which is intended to add compatibility with firebase@9
.
If you want to be really adventurous, you can try applying the change set at https://github.com/firebase/firebaseui-web/pull/850, but that appears to be undergoing active development (comments as of 3 days ago). Perhaps it will be merged and released in the not-too-distant future and hopefully your issue will be resolved by it.
QUESTION
I recently updated to firebase 8, and related deps including firebaseui 4.8.1 (I have tried several versions, they all give me this error). It loads a login box, but when trying to enter creds or create a new user, I get this error:
updateCurrentUser failed: First argument "user" must be an instance of Firebase User or null.
How can I restore the auth functionality?
firebase.js
...ANSWER
Answered 2021-Aug-06 at 06:57Try this
This workaround is to list firebaseui in the project's packages.json
:
QUESTION
I am trying to create simple sign-in flow using firebase-ui. I am using google as my authentication. I am following instructions from https://github.com/firebase/firebaseui-web-react
This is my src/login.js
...ANSWER
Answered 2021-May-16 at 00:23I refreshed my npm and started again and it worked. Not sure what was the issue. But the same code works now.
QUESTION
Is there a way to override the CSS without rebuilding the entire FirebaseUI? I need to change the purple colors in the form below. I am not using mobile. I just have the script tag bringing the CSS and JavaScript in for FirebaseUI from the CDN.
Want to override the colors using a style tag in the html of the page. Don't want to fork, change deploy and now have to maintain more code. :)
I have this link to the css but can't figure out which property is controlling the color. https://github.com/firebase/firebaseui-web/blob/master/stylesheet/firebase-ui.css
Here is the github project for reference: https://github.com/firebase/firebaseui-web
...ANSWER
Answered 2021-Apr-13 at 16:11I had to do this a few weeks ago. Here are the properties I changed:
QUESTION
Referring to this official example from the Next.js github that shows using firebase auth with next.
Many projects I study, at some point use createUserWithEmailAndPassword. With this they can **use the user credentials to do things like creating a new document in a 'users' collection in a firestore database. This stack answer and this tutorial refer to this method.
The example I linked to, (i think) uses firebase-ui - the auth part of my code looks like this:
...ANSWER
Answered 2020-Aug-21 at 15:20There is really no need to "get access to user credentials". The only thing you need to be concerned about is making sure you perform any Firebase queries after the user has signed in. It doesn't matter how they sign in.
You can detect when a user signs in by using an auth state observer. The observer callback will let you know when a user has signed in.
QUESTION
I was following using-firebaseauth-with-local-state to implement authentication in my react app but I am using functional components and hooks. How am I supposed to implement the componentDidMount()
and componentWillUnmount()
?
Here is the code I have in the Login.jsx
component:
ANSWER
Answered 2020-Feb-26 at 20:13How am I supposed to implement the
componentDidMount()
andcomponentWillUnmount()
?
Use useEffect
with an empty array to emulate a componentDidMount
; then return a function from that same useEffect
to emulate componentWillUnmount
.
In your code, useEffect
return a function, so that means that this function will execute when the component will get unmounted, so your firebase.auth().onAuthStateChanged
will get hooked when you'll done with the Login
component.
To make a proper hook, set useEffect
like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install firebaseui-web
Install the necessary Cordova plugins, make the necessary Firebase Console changes and update your config.xml file as documented in OAuth Sign-In for Cordova
After you have successfully configured your application, you can use FirebaseUI in your Cordova application just like any other traditional browser applications.
Only redirect signInFlow is supported as Firebase Auth does not support popup mode for Cordova.
firebase.auth.PhoneAuthProvider.PROVIDER_ID is not currently supported.
If you are providing a Content-Security-Policy make sure you add the appropriate exceptions for FirebaseUI resources (style-src, media-src, img-src, script-src, etc.) and underlying Firebase JS SDK.
In React DOM applications you can use the FirebaseUI Web React Wrapper.
In Angular applications you can use this FirebaseUI Web Angular Wrapper from the community.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page