Authentication
We have provided third-party Authentication in our project. There are two types of Authentication modules are in our template i.e. firebase and auth0.
Last updated
We have provided third-party Authentication in our project. There are two types of Authentication modules are in our template i.e. firebase and auth0.
Last updated
Here is step by step instructions to use both type of authentication in your template.
To add Firebase to your app, you'll need a Firebase project, Firebase SDK and a short snippet of initialisation code that has a few details about your project.
Create a Firebase project in the Firebase console, if you don't already have one.
If you already have an existing Google project associated with your app, click Import Google Project. Otherwise, click Create New Project.
If you already have apps in your project, click Add Another App from the project overview page.
Click Add Firebase to your web app.
Copy the initialisation code snippet, we will use this code in the next step.
Open the file src->firebase->index.js
and search for the const config
& paste the code inside it:
If you want to remove the firebase authentication from your existing template then please follow this link Completely Remove Firebase From Template and follow the steps given.
Reactify comes with Auth0 authentication. You can easily authorise user in your app. Here is step by step instructions to use auth0 in your app.
Configure Callback URLs
A callback URL is a URL in your application where Auth0 redirects the user after they have authenticated.
You need to whitelist the callback URL for your app in the Allowed Callback URLs field in your Application Settings. If you do not set any callback URL, your users will see a mismatch error when they log in.
Open auth0-variables.js
to configure callback url under the src->Auth
directory. You also need to update the clientId
& domain
according to your account's configuration.
You also need to add callback url in auth0 application settings.
To get more information about Auth0 check the official document.
Open the src->container->SigninFirebase.js
file and search for the code session-inner-wrapper
and comment the code given below:
Make sure you only commented out the Sign In With Auth0 Button only not the other ones.