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

feat: localStroage에 있는 auth가 유효하면 재접속할 수 있도록 comfirm 띄우기 #121

Merged
merged 2 commits into from
Sep 8, 2024

Conversation

cheonjiyun
Copy link
Contributor

@cheonjiyun cheonjiyun commented Sep 8, 2024

CheckAuth 컴포넌트를 만들어서 라우터에서 감싸주었음. => 한번만 확인 & 중복 코드 없앰

  1. auth가 유효한지 api통해 확인
  2. 유효하면 confirm으로 재접속 할건지 물어봄
  3. 재접속한다고 하면 /game으로 보냄

(로비화면) 첫화면, 방만들기, 초대하기, 이름입력 에서 확인함

close #118

@cheonjiyun cheonjiyun merged commit 7acf26f into dev Sep 8, 2024
1 check passed
@cheonjiyun cheonjiyun deleted the feature/#118 branch September 8, 2024 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

이미 게임에 접속했으면 다시 들어가도 바로 들어가도록
1 participant