Skip to content

Commit 47780e4

Browse files
committed
bugfix: 소셜로그인 안되는 문제 해결
1 parent be99927 commit 47780e4

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/App.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ const route = useRoute()
2323
const hideLayout = computed(() => route.meta.hideLayout === true)
2424
2525
const auth = useAuthStore()
26+
// onMounted 시 유저 정보 가져오기
2627
onMounted(async () => {
27-
const params = new URLSearchParams(window.location.search)
28-
if (params.get('socialLogin') === 'true' || !auth.isLoggedIn) {
29-
await auth.fetchUser()
30-
router.replace(route.path) // ?socialLogin 플래그 제거
31-
}
28+
await auth.fetchUser()
3229
console.log('🔐 현재 로그인 유저 정보:', auth.user)
3330
})
3431
</script>

0 commit comments

Comments
 (0)