개발 일지
S2: auth-token
StelthPark
2021. 11. 1. 21:58
JWT 생성하기


쿠키에 refreshToken 담기

refresh token을 쿠키에 담아 보낼 때 sameSite, secure, httpOnly 옵션을 알맞게 설정하셔야 합니다.
TOKEN해독하기


try~catch(error) 문

axios headers 보내기
axios.get("https://localhost:4000/",{headers:{Authorization : ~}}