Skip to content

sign_in

Ju-Yeon edited this page Jan 3, 2020 · 11 revisions

로그인

Context-type : application/json

POST /auth/signin


Reqest

{
	"email":"test",
	"password":"123123"
}


Response

Success : 200 로그인 성공, 사용자 정보에 그룹코드가 있을때

{
    "message": "로그인 완료",
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QiLCJuYW1lIjoi66Gc6re47J247YWM7Iqk7Yq4IiwiaWF0IjoxNTc3NDE4MTc4LCJleHAiOjE1ODAwMTAxNzgsImlzcyI6IkZsb29kU2VydmVyIn0.SbPGNWdU6ieKuWQUUILF50-c5oEVtZ9zWn5LWt7edag",
        "refreshToken": "AVMT1QOq2aeCtVcC0vItrvJNSWezWWEnyrVSO5wxi4c5tredV5jrIZrrHn5dzo9OdxynzmJBzeYIUxrDK9NqQ63dSb1TwnE7H91Hr7VGW4gpdRi0Ub4PaCEjWr7xcBRPVjGr6D2kludDHGhb2tf6WVEfj2pFJBIF14TTqzrnHzycX96RpfsNMIDGm6BXCEs83ZnrFvZCzwQhYah7krlquL1FYKc1fNgOOx6vow69jlM6idaxQvBO8BbmKLsFzbjj"
    }
}

Success : 200 로그인 성공했지만, 사용자 정보에 그룹코드가 null값일때

{
    "message": "그룹코드 없음.",
    "data": {
        "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InRlc3QiLCJuYW1lIjoi66Gc6re47J247YWM7Iqk7Yq4IiwiaWF0IjoxNTc3NDE4MTc4LCJleHAiOjE1ODAwMTAxNzgsImlzcyI6IkZsb29kU2VydmVyIn0.SbPGNWdU6ieKuWQUUILF50-c5oEVtZ9zWn5LWt7edag",
        "refreshToken": "AVMT1QOq2aeCtVcC0vItrvJNSWezWWEnyrVSO5wxi4c5tredV5jrIZrrHn5dzo9OdxynzmJBzeYIUxrDK9NqQ63dSb1TwnE7H91Hr7VGW4gpdRi0Ub4PaCEjWr7xcBRPVjGr6D2kludDHGhb2tf6WVEfj2pFJBIF14TTqzrnHzycX96RpfsNMIDGm6BXCEs83ZnrFvZCzwQhYah7krlquL1FYKc1fNgOOx6vow69jlM6idaxQvBO8BbmKLsFzbjj"
    }
}

Fail : 200 아이디 불일치

{
    "message": "존재하지 않는 계정 입니다."
}

Fail : 200 비밀번호 불일치

{
    "message": "비밀번호가 다릅니다."
}

Fail: 500

{
    "message": "server error"
}
Clone this wiki locally