- Implement Next.js middleware for route protection - Create Zustand auth store for web (similar to mobile) - Add comprehensive tests for middleware and auth store - Protect authenticated routes (/dashboard, /profile) - Redirect unauthenticated users to /login - Redirect authenticated users from auth routes to /dashboard - Handle session expiration with 401 callback - Set access token cookie for middleware - All tests passing (105 tests total)
2 lines
449 B
JSON
2 lines
449 B
JSON
{"email":"wellnuo_test_4svx4b@virgilian.com","password":"TestPass123!","token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE3Njk5MDcwMzcsInJvbGVzIjpbIlJPTEVfVVNFUiJdLCJhZGRyZXNzIjoid2VsbG51b190ZXN0XzRzdng0YkB2aXJnaWxpYW4uY29tIiwiaWQiOiI2OTdlYTM1Y2RhODc5NWRlMDcwNGJhODMiLCJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyIvYWNjb3VudHMvNjk3ZWEzNWNkYTg3OTVkZTA3MDRiYTgzIl19fQ.YDTF437pPAmOz7lew1eyp2IEO-cu-gg3URyaDqZCWHcrRQGKIPSIPPlrtpSbnndvXGKxMMdzLJNfCHf5JruX7g"}
|