chore(server): disable version check for oauth callback (#12640)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

- **Bug Fixes**
  - Improved Apple OAuth login reliability by ensuring client version checks do not block the callback process.

- **New Features**
  - Enhanced OAuth account information by including an optional display name field.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
forehalo
2025-05-30 03:05:38 +00:00
parent 52777b0064
commit 88eec2cdfb
2 changed files with 4 additions and 1 deletions

View File

@@ -80,8 +80,10 @@ export class OAuthController {
};
}
// the prerequest `/oauth/prelight` request already checked client version,
// let's simply ignore it for callback which will block apple oauth post_form mode
// @UseNamedGuard('version')
@Public()
@UseNamedGuard('version')
@Post('/callback')
@HttpCode(HttpStatus.OK)
async callback(

View File

@@ -7,6 +7,7 @@ import { OAuthProviderFactory } from '../factory';
export interface OAuthAccount {
id: string;
email: string;
name?: string;
avatarUrl?: string;
}