mirror of
http://172.20.10.11:3000/gitadmin/INSIGHT-MVP.git
synced 2026-06-24 22:46:39 +02:00
fix: make refreshToken optional in LoginResponse for 2FA flow
The 2FA challenge response does not include a refreshToken (token is only issued after successful 2FA verification). Making the field optional fixes the TS2741 compilation error that prevented the core service from starting. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
1643db0e7b
commit
ffb618ee65
2 changed files with 2 additions and 2 deletions
|
|
@ -45,7 +45,7 @@ export class AuthController {
|
|||
|
||||
// Refresh-Token als HttpOnly Cookie setzen (NICHT im localStorage!)
|
||||
// Regel: Kein localStorage fuer Tokens
|
||||
this.setRefreshTokenCookie(res, result.refreshToken);
|
||||
this.setRefreshTokenCookie(res, result.refreshToken!);
|
||||
|
||||
return {
|
||||
accessToken: result.accessToken,
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ interface TokenPair {
|
|||
|
||||
interface LoginResponse {
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
refreshToken?: string;
|
||||
user: {
|
||||
id: string;
|
||||
email: string;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue