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:
parent
19360e9a9f
commit
ccaa1eca7e
3 changed files with 55 additions and 60 deletions
Loading…
Add table
Add a link
Reference in a new issue