-
Notifications
You must be signed in to change notification settings - Fork 1
✔ 토큰 재발급
Gyunny edited this page Sep 7, 2020
·
7 revisions
메소드 | 경로 | 설명 |
---|---|---|
GET | /token/request | accessToken 만료시 재발급 |
{
"Content-Type" : "application/json",
"refreshToken" : "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QzIiwibmFtZSI6Iu2FjOyKpO2KuCIsImlhdCI6MTU3NzczNTQwNSwiZXhwIjoxNTgwMzI3NDA1LCJpc3MiOiJPdW5jZV9TZXJ2ZXIifQ.V4hcw4bxwICn4p7nz15ToUw63ok-QmbIbWx7gvDMouI"
}
- refreshToken : 리프레시 토큰 (회원가입, 로그인시 받았던 토큰)
{
"status": 200,
"success": true,
"message": "토큰을 재발급했습니다",
"data": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWR4IjoyNCwiaWF0IjoxNTk5NDExODUyLCJleHAiOjE1OTk0MTU0NTIsImlzcyI6Im91ci1zb3B0In0.u1-e6WFZVJ8FiKdphF4mqZZhHkN-ccvjqV-uh1xgA9k",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWR4IjoyNCwiaWF0IjoxNTk5NDExODUyLCJleHAiOjE2MDA3MDc4NTIsImlzcyI6IlJlZnJlc2gtTUFSVSJ9.tRE9mhnSg4V-zcJ2w0L88zWJpQrz3ysqNpPBcIQZD3o"
}
}
- accessToken : 엑세스 토큰
- refreshToken : 리프레시 토큰
- 토큰이 없을 경우
{
"status": 400,
"success": false,
"message": "토큰이 존재하지 않습니다"
}
- 토큰이 잘못되었을 경우
{
"status": 400,
"success": false,
"message": "토큰이 잘못되었습니다"
}