myeonjeobeottae / client

0 stars 0 forks source link

accessToken #21

Closed tangjinlog closed 6 months ago

tangjinlog commented 6 months ago

프론트 accessToken - body -> localStorage refreshToken - cookie ( withCredential ) 새로고침 시 getUser api 매번 보냄.

accessToken 보내는데 만료면, 서버에서 에러를 주면, accessToken 재발급받는 api를 요청, 그럼 유저 모르게 백그라운드에서 조용히 갈아끼움.