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

#192 feat: 로그아웃, 회원 탈퇴 시 쿠키 날린 거 앱으로 전달하는 로직 추가 #215

Merged
merged 2 commits into from
Jan 31, 2024

Conversation

YelynnOh
Copy link
Collaborator

PR의 목적을 알려주세요.

close #192

어떤 변경사항이 있는지 알려주세요.

회원 탈퇴와 로그아웃 시 웹에서 앱으로 빈 토큰 값을 넘겨주는 부분을 추가했습니다.

중점적으로 봐주었으면 하는 부분

@YelynnOh YelynnOh added the feat New feature or request label Jan 31, 2024
@YelynnOh YelynnOh self-assigned this Jan 31, 2024
@@ -8,6 +8,7 @@ const useWebView = () => {
const accessToken = Cookies.get('accessToken');
const refreshToken = Cookies.get('refreshToken');

//NOTE: 사용자가 앱을 껐다가 다시 접속할 때는 브라우저 토큰 보낼 필요 없음
if (accessToken != null && refreshToken != null) {
Copy link
Collaborator

@YOOJS1205 YOOJS1205 Jan 31, 2024

Choose a reason for hiding this comment

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

비교 조건을 엄격 비교 (!==)로 하면 좋을 것 같습니다.
토큰 값이 null 혹은 string이라면 아래와 같이 작성할 수 있을 것 같네요.

if (accessToken && refreshToken) { ... }

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

2d07aca 넵넵 여기 반영했습니다!

@YelynnOh YelynnOh merged commit e29632b into main Jan 31, 2024
2 checks passed
@YelynnOh YelynnOh deleted the feat/#192 branch January 31, 2024 13:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

웹에서 로그아웃할 때 앱에게 메시지 전달하게 하기
2 participants