- Fix SNAKKIMO_URL.replace('/api','') bug that stripped both /api occurrences
producing wrong auth URL → use endswith/slice to remove only trailing /api
- Replace directus_users_me with JWT decode (snakkimo has no /users/me endpoint)
Returns Directus-compatible shape with role.admin_access for UI admin checks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
66 KiB
66 KiB