Use Case Guide

Simulate User Roles

Test your app's permission logic with one click. Save user presets and switch between roles without re-authenticating.

The Problem

Testing different permissions usually requires logging in and out multiple times or managing several 'Incognito' windows.

The DevConsole Solution

DevConsole lets you define 'User Presets' that store specific role metadata or session tokens, allowing you to swap them instantly via the UI.

Step-by-Step Implementation

Setup Presets

Create a list of users (e.g., 'Super Admin', 'Viewer') with their associated session state.

Switch Roles

Use the DevConsole role switcher to apply the desired preset to your session.

Verify Access

Ensure the UI elements and API requests correctly reflect the selected user's permissions.

Related Questions

Does it change my real database session?

It changes your local browser state (cookies/tokens). If your server verifies these, it will treat you as the new user.

Can I share these roles with the team?

Yes! User presets are saved in a Git-friendly format for team-wide use.

Start Debugging Smarter

DevConsole is free during development. Join 5,000+ developers shipping better code.

Get Started Now