Datta Angular
v4.1.0
v4.1.0
  • ✨Introduction
  • 🌐Quick Installation
  • 📂Directory Structure
  • 📄Page Structure
  • 🛠️Theme Configuration
  • 🎨Theme Layouts
  • ✏️How to
    • Dashboard as First Page
    • Remove Authentication
    • Remove Role Base Authentication
    • Guard Children Routes
    • Role-Based Authentication
  • 📦Dependencies
  • 🆘Support
  • 📅Changelog
Powered by GitBook
On this page
  1. How to

Remove Authentication

This page describes how to remove auth from a theme

Disable Authentication Temporary

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:

  1. In your app-routing.module.ts, the canActivate or canLoad guard is typically used to protect routes. If you want to disable the guard temporarily, you can comment it out.

....

const routes: Routes = [
  {
    path: '',
    component: AdminComponent,
    // canActivate: [AuthGuard],  // Commenting this out temporarily to disable authentication
    children: [
      {
        path: '',
        redirectTo: '/auth/signinv2',
        pathMatch: 'full'
      },
      ....
    ]
    ...
  }
  ...
]

PreviousDashboard as First PageNextRemove Role Base Authentication
✏️