We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 38befc8 + bf8c8eb commit 5db172dCopy full SHA for 5db172d
src/auth/oauth.v2.service.ts
@@ -150,8 +150,9 @@ export class OAuthV2Service {
150
return this.oauthLogin(newUser.email, PROVIDER.GOOGLE);
151
}
152
153
- public async appleLogin({ authorizationToken }: OAuthLoginRequest) {
154
- const { sub: id, email } = this.jwtService.decode(authorizationToken);
+ public async appleLogin({ authorizationToken: code }: OAuthLoginRequest) {
+ const data = await this.oauthUtil.getAppleToken(code);
155
+ const { sub: id, email } = this.jwtService.decode(data.id_token);
156
157
const user = await this.userRepository.findOneByEmailAndProvider(
158
email,
0 commit comments