The Developer's 1-Click Auth, Session & RBAC Switcher
Hot-swap complete authentication states across Cookies, LocalStorage, and SessionStorage in < 200ms.
-
Build the extension:
npm run build
-
Open Chrome Extensions Manager:
- In Google Chrome, navigate to
chrome://extensions/ - Enable Developer mode toggle in the top-right corner.
- In Google Chrome, navigate to
-
Load the Extension:
- Click the "Load unpacked" button in the top-left.
- Select the
d:\projects\authshift\distfolder.
-
Pin to Toolbar:
- Click the extension puzzle icon in Chrome's toolbar and pin AuthShift.
-
Test on any web app:
- Open any local or staging app (e.g.
http://localhost:3000). - Log in
$\rightarrow$ Click AuthShift$\rightarrow$ "Save Current Tab" (e.g. name it "Admin"). - Log out or log in as a different user
$\rightarrow$ Save as "Free Member". - Click "Switch" or use
Alt + Shift + 1/Alt + Shift + 2to watch roles swap instantly!
- Open any local or staging app (e.g.
| Shortcut | Action |
|---|---|
Alt + Shift + 1 |
Instantly switch to Persona 1 |
Alt + Shift + 2 |
Instantly switch to Persona 2 |
Alt + Shift + 3 |
Instantly switch to Persona 3 |
Alt + Shift + 0 |
Clean Session (Instant Log Out / Wipe storage) |
authshift/
├── dist/ # Built production extension (ready to load unpacked)
├── public/
│ ├── manifest.json # Chrome Manifest V3 configuration
│ └── icons/ # 16px, 48px, 128px high-res icons
├── src/
│ ├── background/ # Service Worker (keyboard shortcuts, tab badge sync)
│ ├── popup/ # React 19 + Tailwind popup UI
│ │ ├── components/ # Header, PersonaCard, CreateModal, ExportImport, Settings
│ │ ├── App.tsx
│ │ └── index.tsx
│ ├── lib/ # Atomic Engine, Cookie Utils, DOM WebStorage, chrome.storage
│ ├── types/ # TypeScript data models
│ └── styles/ # Tailwind CSS styles
├── scripts/
│ └── generate_icons.py # Pillow script to render icons
└── package.json
npm run build— Typecheck and build thedist/extension bundle.npm run dev— Build with watch mode during development.npm run icons— Regenerate PNG icon assets from Python.npm run pack— Build and compress toauthshift.zipfor Web Store upload.
Contributions are welcome! Please check out CONTRIBUTING.md for local environment setup, architecture overview, and PR guidelines.
Please review our Code of Conduct before participating.
For security policies and responsible vulnerability disclosures, please refer to SECURITY.md.
This project is open source and available under the MIT License.
Copyright (c) 2026 Subodh Khanal.