로그인

로그인

● 잠김 계정에 대한 로그인 불허

● 비활성화 계정에 대한 로그인 불허

POST /api/v1/member/login

Request Headers

Name
Value

Content-Type

x-www-form-urlencoded

Accept

application/json

Request Body

Name
Type
Description
Validation

username

string

아이디

  1. NOT NULL

  2. 공백포함 불가

password

string

비밀번호

  1. NOT NULL

  2. 공백포함 불가

Response

{ 
    "status": 200,
    "code": "SUCCESS REQUEST",
    "data": null,
    "timestamp": "2024-11-16 01:58:45"
}

Response(Validation Fail)

{
    "status": 400,
    "message": "아이디, 비밀번호를 입력해주세요.", //아이디 , 비밀번호를 입력하지 않음
    "code": "ERR-SEC-02",
    "timestamp": "2024-11-16 02:00:18"
}

Response Headers

Name
Value

access

액세스 토큰 ( 유효기간 5분)

Set-Cookie

refresh=리프레시토큰; Max-Age=86400; Expires=24시간; Path=/; HttpOnly

Last updated