Auth

구글 계정 연결 확인

linkRequired:true 응답을 받고 사용자가 '예'를 선택했을 때만 호출한다. 진입 때 보낸 idToken 을 재전송하면 재검증 후 같은 이메일의 로컬 계정에 구글 로그인을 연결하고 토큰을 발급한다.

post/api/v1/auth/google/link

Request

  • Base URL: https://api.chaeso-zip.com
  • URL: https://api.chaeso-zip.com/api/v1/auth/google/link
  • Auth: none declared

Request body

idTokenstring required

Google Identity Services 로 받은 idToken

Example request

{
  "idToken": "eyJhbGciOiJSUzI1NiJ9..."
}

Response

연결 완료(code: GOOGLE_ACCOUNT_LINKED) 및 토큰 발급

successboolean required

요청 성공 여부

codestring nullable required

성공 안내 코드. 안내할 것이 없으면 null

Example response

{
  "success": true,
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiJ9...",
    "refreshToken": "eyJhbGciOiJIUzI1NiJ9...",
    "accessTokenExpiresIn": 1800,
    "refreshTokenExpiresIn": 1209600
  },
  "error": {
    "code": "C-001",
    "message": "입력값이 올바르지 않습니다.",
    "fieldErrors": [
      {
        "field": "name",
        "reason": "이름은 필수입니다."
      }
    ]
  },
  "code": "GOOGLE_ACCOUNT_LINKED"
}

Changes

No recorded changes to this operation across all 1 revision of this API.