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.txs
Change auth Hooks
Comment another context in the following file and uncomment the Firebase one.
src/hook/useAuth.ts
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.tsx
We have provided a code that just needs to be replaced.
From:
src\sections\auth\register\FirebaseRegister
To:
src\sections\auth\auth-forms\AuthRegister.tsx
Last updated