Decode JWT client-side instead of calling /api/auth/me

- Add lib/auth.ts with decodeJWT() and isTokenValid()
- Layout decodes JWT directly - no extra request
- Domains page also uses JWT for admin check
- Removed redundant user.domains from domains list page
This commit is contained in:
Christoph Haas 2026-03-23 00:57:36 +01:00
parent 19360e9a9f
commit ccaa1eca7e
3 changed files with 55 additions and 60 deletions