0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

fix(core): fix google one tap validation error (#6455)

fix google one tap validation error
This commit is contained in:
simeng-li 2024-08-16 13:32:40 +08:00 committed by GitHub
parent 69208c3a8f
commit 9674d5c8f0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,8 +144,9 @@ export default function socialVerificationRoutes<T extends ExperienceInteraction
await socialVerificationRecord.verify(ctx, tenantContext, connectorData);
await ctx.experienceInteraction.save();
// The input verificationId may be undefined if it's a Google one tap callback
ctx.body = {
verificationId,
verificationId: socialVerificationRecord.id,
};
return next();