Switch to Firebase
JWT to Firebase
Set Firebase Config
At present, firebase uses you need to set a secret in the following file. For more detail refer to firebase here: https://firebase.google.com/docs/reference/rest/auth
.env
Change AuthProvider
..\src\App.jxs
Change auth Hooks
Comment another context in the following file and uncomment Firebase one.
..\src\hook\useAuth.js
Copy login code
It's also super simple. We have provided a code that just needs to be replaced.
From:
src\sections\auth\login\FirebaseLogin
To:
src\sections\auth\auth-forms\AuthLogin.jsx
Copy register code
We have provided a code that just needs to be replaced.
From:
src\sections\auth\register\FirebaseRegister
To:
src\sections\auth\auth-forms\AuthRegister.jsx
Last updated