Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fe/feature/#602 카카오톡 로그아웃 기능 #608

Merged
merged 7 commits into from
Mar 8, 2024

Conversation

HeoJiye
Copy link
Collaborator

@HeoJiye HeoJiye commented Mar 6, 2024

🔮 resolved #602

변경 사항

ex) 로그인 시, 구글 소셜 로그인 기능을 추가했습니다.

  • 로그아웃 버튼 추가

고민과 해결 과정

🙇‍♀️ 인증이 필요할 땐 withCredentials을 빼먹지 말자!!!

(선택) 테스트 결과

녹화_2024_03_08_19_20_07_425

  • Ai 채팅 페이지에 로그아웃 버튼 추가

Copy link

cloudflare-workers-and-pages bot commented Mar 6, 2024

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: eb9f059
Status: ✅  Deploy successful!
Preview URL: https://cee84b09.web09-magicconch.pages.dev
Branch Preview URL: https://fe-feature--602.web09-magicconch.pages.dev

View logs

@HeoJiye HeoJiye marked this pull request as ready for review March 8, 2024 10:21

export function useKakaoOAuth() {
const requestAuthorization = () => {
window.location.href = KAKAO_AUTH_URL;
};

return { requestAuthorization };
const logout = async () => {
const res = await axios.get(KAKAO_LOGOUT_URL, { withCredentials: true });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍👍👍

@HeoJiye HeoJiye merged commit 30d7b9a into dev Mar 8, 2024
2 checks passed
@HeoJiye HeoJiye deleted the FE/feature/#602-카카오톡-로그아웃-기능 branch March 8, 2024 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✅ FEATURE: 카카오톡 로그아웃 기능
3 participants