mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 10:06:17 +08:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user