Auth

카카오 로그인

프론트엔드가 카카오 GET 콜백의 state를 검증한 뒤 일회용 code와 콜백 환경 식별자를 전달합니다. redirectTarget은 local, dev, prod 중 서버에 등록된 값만 허용하며 URI 자체는 전달하지 않습니다. 서버가 카카오와 code를 교환하고 회원번호를 확인한 뒤 Moyeo Access Token을 발급합니다. 최초 로그인도 즉시 가입 처리하며 nickname은 null, onboardingCompleted는 false로 반환합니다.

post/api/auth/kakao

Request

  • Base URL: https://3-35-119-70.sslip.io
  • URL: https://3-35-119-70.sslip.io/api/auth/kakao
  • Auth: none declared

Request body

codestring required

카카오 콜백으로 전달된 일회용 인가 코드

redirectTarget'local' | 'dev' | 'prod' required

서버에 등록된 카카오 콜백 환경

Example request

{
  "code": "abc123...",
  "redirectTarget": "dev"
}

Response

카카오 로그인 및 Access Token 발급 성공

Changes

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