fix(gateway): accept Kakao already-registered response

This commit is contained in:
2026-08-08 12:51:45 +00:00
parent 5c0aac5561
commit 31fcaa2c1c
4 changed files with 63 additions and 4 deletions
+1 -1
View File
@@ -253,7 +253,7 @@ export const appRouter = router({
const tokenIssuedAt = new Date();
const signupResult = await ctx.kakaoClient.signup(token.accessToken);
const alreadyRegisteredWithKakao = !signupResult.id && signupResult.msg === 'already registered';
const alreadyRegisteredWithKakao = !signupResult.id && signupResult.alreadyRegistered;
if (!signupResult.id && !alreadyRegisteredWithKakao) {
throw new TRPCError({
code: 'BAD_REQUEST',