fix(oidc): verify mailbox identity before linking accounts

Preserve the provider mailbox on new accounts. For existing accounts, use the stored issuer and subject or check mailbox identity before linking. Keep the candidate lookup and identity update inside the same transaction.
This commit is contained in:
Maurice
2026-12-01 11:20:09 +01:00
parent 0d521f0930
commit 1ff8a814ae
8 changed files with 60 additions and 78 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"src/db/repositories/Places.repository.ts": 1432,
"src/db/repositories/Reservations.repository.ts": 1550,
"src/db/repositories/Trips.repository.ts": 1120,
"src/db/repositories/Users.repository.ts": 1421,
"src/db/repositories/Users.repository.ts": 1403,
"src/nest/atlas/atlas.service.ts": 1166,
"src/nest/auth/auth.service.ts": 1114,
"src/nest/budget/budget.service.ts": 1607,