Skip to content

Commit

Permalink
[fix] #157 존재하지 않는 회원일 경우 토큰 초기화
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook123 committed Aug 27, 2023
1 parent 3660966 commit 21879b9
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ class AuthInterceptor @Inject constructor(
saveAccessToken("", "")
}
}

CODE_INVALID_USER -> {
saveAccessToken("", "")
}
}
return response
}
Expand Down Expand Up @@ -95,6 +99,7 @@ class AuthInterceptor @Inject constructor(
companion object {
private const val HEADER_TOKEN = "accessToken"
private const val CODE_TOKEN_EXPIRED = 401
private const val CODE_INVALID_USER = 404
private const val REFRESH_TOKEN = "refreshToken"
}
}

0 comments on commit 21879b9

Please sign in to comment.