Disabling authentication temporarily is generally not recommended due to security risks. However, if you have a specific scenario where you need to disable authentication for a short period, here are some steps you can follow:
Comment out the AuthGuard wrapper for the routes within the below file .../src/routes/MainRoutes.tsx
In the code snippet above, the <AuthGuard> a component is commented out, allowing the routes within the MainLayout component to be rendered without authentication protection. To enable the AuthGuard wrapper again, remove the comment markers (//) surrounding the <AuthGuard> component.
Remove Authentication Permanent
If you want to permanently remove authentication from a system or application, here are the steps to follow:
Remove below authentication keys from .env file.
.env
......## Firebase - Google Auth VITE_APP_FIREBASE_API_KEY=VITE_APP_FIREBASE_AUTH_DOMAIN=VITE_APP_FIREBASE_PROJECT_ID=VITE_APP_FIREBASE_STORAGE_BUCKET=VITE_APP_FIREBASE_MESSAGING_SENDER_ID=VITE_APP_FIREBASE_APP_ID=VITE_APP_FIREBASE_MEASUREMENT_ID=## AWSVITE_APP_AWS_POOL_ID=VITE_APP_AWS_APP_CLIENT_ID=## Auth0VITE_APP_AUTH0_CLIENT_ID=VITE_APP_AUTH0_DOMAIN=......
Remove import and usage of AuthGuard from ./src/routes/MainRoutes.tsx
Disabling authentication within the system would render certain applications non-functional, particularly those reliant on backend APIs. These applications require a valid token to access and load data seamlessly.