Skip to content

Commit

Permalink
Merge pull request #62 from lotteon2/O2F-1036-Frontend-/feat/google/l…
Browse files Browse the repository at this point in the history
…ogin

O2F-1038 [Feat] 구글 로그인 추가
  • Loading branch information
wakkpu authored Dec 27, 2023
2 parents e543646 + abb2a80 commit 0ba1944
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/views/LoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<img class="oauth-kakao" src="@/assets/images/kakao-login.png" @click="redirectToKakaoLogin"/>
</div>
<div class="oauth-google-wrapper">
<img class="oauth-google" src="@/assets/images/google-login.png" />
<img class="oauth-google" src="@/assets/images/google-login.png" @click="redirectToGoogleLogin"/>
</div>
</div>
</div>
Expand Down Expand Up @@ -406,9 +406,13 @@
export default {
methods: {
redirectToKakaoLogin() {
const kakaoLoginUrl = import.meta.env.VITE_LOGIN_URL;
const kakaoLoginUrl = import.meta.env.VITE_KAKAO_LOGIN_URL;
window.location.href = kakaoLoginUrl;
},
redirectToGoogleLogin() {
const googleLoginUrl = import.meta.env.VITE_GOOGLE_LOGIN_URL;
window.location.href = googleLoginUrl;
},
},
};
</script>
Expand Down

0 comments on commit 0ba1944

Please sign in to comment.