fix: oauth account linking (#29624)

This commit is contained in:
Daniel Dietzler
2026-07-07 11:21:27 -05:00
committed by GitHub
parent 0ebb723b39
commit f8e78792b8
+1 -1
View File
@@ -426,7 +426,7 @@ export class AuthService extends BaseService {
throw new BadRequestException('This OAuth account has already been linked to another user.');
}
if (auth.session) {
if (auth.session && sid) {
await this.sessionRepository.update(auth.session.id, { oauthSid: sid });
}