Reactify
  • Introduction
  • Folder Structure
  • Reactify Redux Thunk/Saga
    • Installation
    • Different Layouts
      • Adding Menu/Component In Different Layouts
    • Adding Widgets
    • Build an App from Scratch
    • Seed Project
    • Themes
    • Authentication
    • Translate The App(Multi Language Support)
    • UI Components
      • Alerts
      • App Bar
      • Avatars
      • Badges
      • Bottom Navigation
      • Buttons
      • Cards
      • Card Masonary
      • Chip
      • Dialogs
      • Divider
      • Drawers
      • Expansion Panel
      • Grid List
      • List
      • Menu
      • Pop Over & ToolTip
      • Progress
      • Snackbar
      • Selection Controls
    • Style Customization
    • Create a Docker Image
    • Instant Search With Algolia
    • Deployment
  • Reactify Laravel
    • Folder Structure
    • Installation Reactify Laravel
  • FAQ's(Frequently Asked Questions)
  • Credits
  • Changelog
  • Customer Support
Powered by GitBook
On this page
  • Authentication With Firebase
  • Removing Firebase Authentication
  • Authentication With Auth0-js
  • Removing Auth0 Authentication
  1. Reactify Redux Thunk/Saga

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.

PreviousThemesNextTranslate The App(Multi Language Support)

Last updated 6 years ago

Here is step by step instructions to use both type of authentication in your template.

Authentication With Firebase

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.

  1. Create a Firebase project in the , if you don't already have one.

    1. If you already have an existing Google project associated with your app, click Import Google Project. Otherwise, click Create New Project.

    2. If you already have apps in your project, click Add Another App from the project overview page.

  2. Click Add Firebase to your web app.

  3. Copy the initialisation code snippet, we will use this code in the next step.

  4. Open the file src->firebase->index.js and search for the const config & paste the code inside it:

Removing Firebase Authentication

Authentication With Auth0-js

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.

Removing Auth0 Authentication

Open the src->container->SigninFirebase.js file and search for the code session-inner-wrapper and comment the code given below:

SigninFirebase.js
{/* <FormGroup className="mb-15">
               <Button
                      variant="contained"
                      className="btn-info btn-block text-white w-100"
                      size="large"
                      onClick={() => this.loginAuth0()}
                >
                 Sign In With Auth0
                </Button>
</FormGroup> */}

Make sure you only commented out the Sign In With Auth0 Button only not the other ones.

If you want to remove the firebase authentication from your existing template then please follow this link and follow the steps given.

To get more information about Auth0 check the official .

Completely Remove Firebase From Template
document
Firebase console
Firebase Initialisation
Auth0 SignIn Preview
Auth0.js Config
Auth0 Application Settings