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()
|
@Public()
|
||||||
@UseNamedGuard('version')
|
|
||||||
@Post('/callback')
|
@Post('/callback')
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
async callback(
|
async callback(
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ import { OAuthProviderFactory } from '../factory';
|
|||||||
export interface OAuthAccount {
|
export interface OAuthAccount {
|
||||||
id: string;
|
id: string;
|
||||||
email: string;
|
email: string;
|
||||||
|
name?: string;
|
||||||
avatarUrl?: string;
|
avatarUrl?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user