Skip to content

Commit

Permalink
🎨 FcmToken 업데이트 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
woobottle committed Feb 4, 2024
1 parent 4e5e519 commit eff83b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/auth/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,16 @@ export default function LoginPage() {
};

const nativeLoginCallbackEventListener = (event: CustomEvent) => {
updateMemberFcmTokenMutate({ fcmToken: event.detail.data.deviceToken });
socialLoginAsyncMutate(
{
provider: event.detail.data.provider,
idToken: event.detail.data.data,
},
{
onSuccess: () => {
if (!!event.detail?.data?.deviceToken) {
updateMemberFcmTokenMutate({ fcmToken: event.detail.data.deviceToken });
}
router.push(ROUTER.HOME);
},
},
Expand Down

0 comments on commit eff83b7

Please sign in to comment.