-
Notifications
You must be signed in to change notification settings - Fork 0
[POST] 토큰 재발급
MoonAyoung edited this page Jun 2, 2021
·
2 revisions
메소드 | 경로 | 설명 |
---|---|---|
POST | /api/v2/token/refresh | Access Token, Refresh Token 재발급합니다. |
{
"Content-Type": "application/json",
"refreshToken": "[리프레시 토큰]"
}
{
"status": 200,
"message": "AccessToken, RefreshToken 발급합니다.",
"data": {
"accessToken": "[액세스 토큰]",
"refreshToken": "[리프레시 토큰]",
"accessExpiredAt": "2021-06-21 15:56:28",
"refreshExpiredAt": "2021-06-30 19:56:28"
}
}
- 토큰 만료된 경우
{
"status": 401,
"message": "만료된 토큰입니다.",
"data": null
}
- 데이터베이스 에러
{
"status": 500,
"message": "데이터베이스 오류입니다.",
"data": null
}
- 서버 에러
{
"status": 500,
"message": "서버 내부 에러입니다."
}