fix(gateway): accept Kakao already-registered response

This commit is contained in:
Hide_D committed 2026-08-08 12:51:45 +00:00
1 parent 5c0aac5561
commit 31fcaa2c1c
4 files changed
+63 -4

No files matched your search

+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',