- Added debug logging to getUserFromRequest function - Log when no auth header is found vs when token verification fails - Log token verification attempts and decoded results - This will help identify why 'All My Cards' collection lookup is failing The issue appears to be that the development fallback always returns admin user, but users are trying to access collections belonging to other users (like Bob). This debugging will help us see if tokens are being sent properly. |
||
|---|---|---|
| .. | ||
| admin-auth.js | ||
| auth-context.js | ||
| database.js | ||
| permission-middleware.js | ||
| slug-utils.js | ||
| theme-context.js | ||
| use-auth.js | ||