Skip to content

Commit

Permalink
feat: 카카오 토큰을..
Browse files Browse the repository at this point in the history
  • Loading branch information
ssoxong committed Jun 9, 2024
1 parent fe70481 commit be1c403
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Components/Login/LogoutKakao.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ const LogoutKakao = () => {

if (Kakao && Kakao.Auth) {
Kakao.Auth.logout(() => {
localStorage.clear()
setUser(null)
localStorage.clear()

console.log('Logged out successfully')
})
}
if (localStorage.getItem('kakaoToken')) {
localStorage.clear()
setUser(null)
localStorage.clear()

}
navigate('/')
}
Expand Down

0 comments on commit be1c403

Please sign in to comment.