🐛 Root Cause: - Collection detail page was not sending auth token in API requests - This caused the API to fallback to admin user authentication - Bob's 'All My Cards' collection was inaccessible to admin user ✅ Solution: - Added Authorization header to fetchCollectionData() function - Added Authorization header to collection cards fetch request - Both requests now properly authenticate as the logged-in user 🔍 Debug Results: - Token verification was working correctly for other API calls - Only the main collection fetch was missing authentication - This explains the 404 error for system collections The 'All My Cards' collection should now be accessible! 🚀 |
||
|---|---|---|
| .. | ||
| admin-auth.js | ||
| auth-context.js | ||
| database.js | ||
| permission-middleware.js | ||
| slug-utils.js | ||
| theme-context.js | ||
| use-auth.js | ||