mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-16 11:59:39 +02:00
The sessionToToken method was incorrectly returning the session cookie token instead of the actual refreshToken from the database. This caused "No refresh token available" errors when users logged in via SSO (cross-domain cookie) because the /api/v1/auth/refresh endpoint expects the refreshToken field from the sessions table, not the cookie token. Now the method: - Fetches the session from database by cookie token - Uses existing refreshToken if available - Generates and stores a new refreshToken if missing - Returns the actual refreshToken that works with token refresh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| __tests__/utils | ||
| ai | ||
| analytics | ||
| auth | ||
| common | ||
| config | ||
| credits | ||
| db | ||
| feedback | ||
| health | ||
| metrics | ||
| referrals | ||
| settings | ||
| tags | ||
| app.module.ts | ||
| main.ts | ||