veza/apps/web/e2e/.auth/user.json
senke d0f403018d [FIX] ISSUE-001 & ISSUE-002: Fix authentication workflow for MVP
ISSUE-001: Auto-verify email on registration
- Set IsVerified: true in Register() to allow immediate login
- Removes blocking email verification requirement for MVP

ISSUE-002: Generate tokens in Register
- Modified Register() signature to return (*User, *TokenPair, error)
- Added JWT token generation after user creation
- Store refresh token in database
- Updated handlers to use returned tokens
- Added nil checks for JWTService and refreshTokenService

Changes:
- veza-backend-api/internal/core/auth/service.go
- veza-backend-api/internal/handlers/auth.go
- veza-backend-api/internal/core/auth/handler.go
- REAL_ISSUES_TODOLIST.json

Note: Backend needs to be recompiled and restarted for changes to take effect.
2026-01-04 01:44:13 +01:00

34 lines
No EOL
1.8 KiB
JSON

{
"cookies": [],
"origins": [
{
"origin": "http://localhost:3000",
"localStorage": [
{
"name": "veza_access_token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5MjY1ZTUwOS00Y2NlLTQ1NTctYjE2My0zNTBkZDU0M2ZkNGQiLCJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20iLCJ1c2VybmFtZSI6InRlc3R1c2VyXzE3NjY3NjA5NjcxMTIiLCJyb2xlIjoidXNlciIsInRva2VuX3ZlcnNpb24iOjAsInRva2VuX3R5cGUiOiJhY2Nlc3MiLCJpc3MiOiJ2ZXphLWFwaSIsImF1ZCI6WyJ2ZXphLWFwcCJdLCJleHAiOjE3NjY3NjIxNzIsImlhdCI6MTc2Njc2MTI3MiwianRpIjoiNGYxOTVkODUtMjlmNC00NDQyLTljOWQtMWVhOWQxN2QxN2M3In0.EUNBLwxdbDSBJrF6atQbyYxLalEdkeHi9ZourMOpKIg"
},
{
"name": "i18nextLng",
"value": "en"
},
{
"name": "veza_refresh_token",
"value": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI5MjY1ZTUwOS00Y2NlLTQ1NTctYjE2My0zNTBkZDU0M2ZkNGQiLCJlbWFpbCI6IiIsInJvbGUiOiIiLCJ0b2tlbl92ZXJzaW9uIjowLCJpc19yZWZyZXNoIjp0cnVlLCJ0b2tlbl90eXBlIjoicmVmcmVzaCIsInRva2VuX2ZhbWlseSI6IjlhMDZiMTdmLWExMjktNDQ4NS1hNzUxLTBhNTg0OTVmZDc5YiIsImlzcyI6InZlemEtYXBpIiwiYXVkIjpbInZlemEtYXBwIl0sImV4cCI6MTc2OTM1MzI3MiwiaWF0IjoxNzY2NzYxMjcyLCJqdGkiOiJlNmYyN2JhNC0yMGJiLTRkMjYtYWNhOS1iODY5NzU3ZWZlOTIifQ.2ljsDtQUrVTWhOt2FuW3nQopcNpdlN0RnNohF9QFgAw"
},
{
"name": "library-storage",
"value": "{\"state\":{\"favorites\":{\"byId\":{},\"allIds\":[]},\"filters\":{}},\"version\":0}"
},
{
"name": "ui-storage",
"value": "{\"state\":{\"theme\":\"system\",\"language\":\"en\",\"sidebarOpen\":true},\"version\":0}"
},
{
"name": "auth-storage",
"value": "{\"state\":{\"user\":{\"id\":\"9265e509-4cce-4557-b163-350dd543fd4d\",\"email\":\"user@example.com\",\"username\":\"testuser_1766760967112\"},\"isAuthenticated\":true},\"version\":0}"
}
]
}
]
}