Firebase, JSON Web Token (JWT), Auth0, AWS
for their users. Users can change it as per their needs.GuestGuard
and AuthGuard.
Guards have been configured in src\utils\route-guard\
folder.src/layout/App.js
, we have specified auth provider FirebaseProvider
like,<FirebaseProvider>
<FirebaseProvider>
, we can use the context directly by importing useContext
from React and specifying the context FirebaseContext
or we can use the custom hook useAuth
from src/hooks/useAuth.js
The theme provides working an example for Login and Register only. Other flow like reset password, verification have to make it workable by the user himself.
src\views\pages\authentication\login\Auth0Login
to src\views\pages\authentication\auth-forms\AuthLogin.tsx
src\components\Authentication\login\Auth0Login
to src\components\Authentication\auth-forms\AuthLogin.tsx
src\views\pages\authentication\login\Auth0Register
to src\views\pages\authentication\auth-forms\AuthRegister.tsx
src\components\Authentication\login\Auth0Register
to src\components\Authentication\auth-forms\AuthRegister.tsx
src\views\pages\authentication\login\JWTLogin
to src\views\pages\authentication\auth-forms\AuthLogin.tsx
src\components\Authentication\login\JWTLogin
to src\components\Authentication\auth-forms\AuthLogin.tsx
src\views\pages\authentication\login\JWTRegister
to src\views\pages\authentication\auth-forms\AuthRegister.tsx
src\components\Authentication\login\JWTRegister
to src\components\Authentication\auth-forms\AuthRegister.tsx
​
src\views\pages\authentication\login\AWSCognitoLogin
to src\views\pages\authentication\auth-forms\AuthLogin.tsx
src\components\Authentication\login\AWSCongnitoLogin
to src\components\Authentication\auth-forms\AuthLogin.tsx
src\views\pages\authentication\login\AWSCognitoRegister
to src\views\pages\authentication\auth-forms\AuthRegister.tsx
src\components\Authentication\login\AWSCognitoRegister
to src\components\Authentication\auth-forms\AuthRegister.tsx