Firebase
Last updated
Was this helpful?
Last updated
Was this helpful?
At present, firebase uses you need to set a secret in the following file. For more detail refer to firebase here:
Set Firebase Config in .env
Change AuthProvider
Change auth Hooks
Comment another context in the following file and uncomment Firebase one.
Replace Login Code
It's super simple. We have provided a code that just needs to be replaced.
VITE:
From: src\views\pages\authentication\login\FirebaseLogin
To: src\views\pages\authentication\auth-forms\AuthLogin.tsx
NEXTJS:
From: src\components\Authentication\login\FirebaseLogin
To: src\components\Authentication\auth-forms\AuthLogin.jsx
Replace Register Code
VITE:
From: src\views\pages\authentication\register\FirebaseRegister
To: src\views\pages\authentication\auth-forms\AuthRegister.jsx
NEXTJS:
From: src\components\Authentication\register\FirebaseRegister
To: src\components\Authentication\auth-forms\AuthRegister.jsx