Skip to content

Access Token 만료 후에 웹 사이트 오류 발생 #6

Description

@mylazysundaycat

Description

Refresh Token이 만료 됐을 땐 Token Refresh가 안되는데도 불구하고
refresh 요청을 무한정으로 보내서 사이트 접근에 문제가 생김.

solution

백엔드에서 Access Token이 만료되었을 때와 Refresh Token이 만료되었을 때를 구분하여 오류 메세지를 다르게 보낼 것.
프론트에서 Access Token 만료 응답을 받았다면 refresh API 호출을 하고 Refresh Token 만료 응답을 받았다면 /api/logout API를 호출해주면 될 것 같음

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions