HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
♥️
2기 최종 프로젝트 팀별 공간
/
🐳
[팀 07] 머구리(Meoguri)
/
✨
API document
/OAuth2로그인 + 프로필 여부 조회 Flow/
❓
회원 가입 절차
❓

회원 가입 절차

 
회원가입 한다.
google 회원가입 버튼 누른다 → google 권한 공유 허락하는 화면으로 이동 → 허락합니다 버튼 클릭
→ google 로그인 수행 (newEgoDoc@haha.com) → redirectUrl 로 linkOcean 으로 이동
 
Redirect www.linkOcean/register/profile - 로그인 된 상태
 
요청
Post /profiles { "oauthType" :"github" "email":"newEgoDoc@haha.com" "username":"Old Harry", "bio":"Hi, my name is Harry", "image":"https://noticon-static.tammolo.com/dgggcrkxq/image/upload/v1593397832/noticon/xmudzlguiuwsxfi3wjkj.png", }
 
서버에서는 프로필 등록 처리
 
→ 페이지 넘어감
Get www.linkOcean/register/favorite-categories - 로그인 된 상태
POST /profiles/{profileId}/categories { "categories": [ "코믹", "멜로" ] }
 
Post /profiles { "oauthType" :"github" "email":"newEgoDoc@haha.com" "username":"Old Harry", "bio":"Hi, my name is Harry", "image":"https://noticon-static.tammolo.com/dgggcrkxq/image/upload/v1593397832/noticon/xmudzlguiuwsxfi3wjkj.png", "favorite-categories" : [ "코믹", "멜로" ] }
 
나중에 더 고민해 봐야될듯…ㅠ