Skip to main content

Posts

Showing posts with the label Firebase Email Authentication

How To Authenticate users Anonymously in Firebase?

Let's start to authenticated user anonymously; there are two simple steps as following as - Enable Anonymous Auth - To click Auth and open the SignIn method from the Firebase dashboard and enable to anonymous authentication. SignIn Function - To use signInAnonymously () method for the authentication anonymously. Example – var anonymouslyAuth = firebase . auth (). signInAnonymously (); anonymouslyAuth . then ( function () {         console . log ( 'Logged in as Anonymously!' )     })     . catch ( function ( error ) {         console . log ( error . code );         console . log ( error . message ); }); Stayed Informed - Firebase Tutorial for Android and IOS I hope you are enjoying with this post! Please share with you friends. Thank you so much!

What Are the other Firebase Filtering methods?

The Firebase offers some of other filtering method looks like - 1.      startAt(), 2.      endAt(), 3.      equalTo() and 4.      orderByChild() Example - var usersRef = firebase . database (). ref ( "users/" ); usersRef . orderByChild ( "name" ). startAt ( "Anil" ). on ( "child_added" , function ( result ) {         console . log ( "Start at filter - " + result . val (). name ); }); usersRef . orderByChild ( "name" ). endAt ( "Sunil" ). on ( "child_added" , function ( result ) {         console . log ( "End at filter - " + result . val (). name ); }); usersRef . orderByChild ( "name" ). equalTo ( "Aradhya" ). on ( "child_added" , function ( result ) {         console . log ( "Equal to filter - " + result . val (). name ); }); usersRef . orderByChild ( "age" )....

How To Enable Email Authentication in Firebase?

Some of the following Steps are used to authentication Email in the Firebase i.e. Steps 1 – Click on Authentication tabs Steps 2 – Select User tabs under the Authentication Steps 3 –Click on “Add User” Button and fill the Email and Password in the email textbox and password text. Steps 4 - Finlay click on Add user button and see the identifier and authenticated user UID. You can copy and use this User UID in your apps to authentication. Example – var emailIds = "anil.singh@gmail.com" ; var password = "[password]" ; firebase . auth (). createUserWithEmailAndPassword ( emailIds , password )         . catch ( function ( error ) {              console . log ( error . code );              console . log ( error . message ); }); Stayed Informed - Firebase Tutorial for Android and IOS I hope y...