Mantis uses next-auth for authentication system.
If you want to permanently remove authentication for nextJS, here are the steps to follow:
Remove below authentication keys from .env
file.
Remove below authentication keys from next.config.js
file.
Remove below list of files and directory.
Remove following lines from file src\app\ProviderWrapper.tsx
Remove following lines from filesrc\app(dashboard)\layout.tsx
Remove and change following lines from file src\hooks\useUser.ts
Remove following lines from file - src\layout\DashboardLayout\Drawer\DrawerContent\NavUser.tsx
Remove following lines from file src\layout\DashboardLayout\Header\HeaderContent\Profile\index.tsx
remove props handleLogout from file src\layout\DashboardLayout\Header\HeaderContent\Profile\ProfileTab.tsx
Remove following lines from file src\menu-items\pages.tsx
Remove following lines from file src\utils\axios.ts
Remove package "next-auth": "^**.**.**"
from file package.json
, remove mode_modules
and install node again.
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.
This page describes how to remove auth for NextJS