codestates / codestates/GatherCoding

[task] (post) /oauth 요청 (oath 연결)

Open
#31 0 comments 0 reactions 0 assignees View on GitHub
3h server
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

### ISSUE
- Group: `server`
-Type: `feature`
-Detail: (OAuth) `post('/oauth')` 요청으로 전달받은 user 정보들로 oauth 연결 구축. 유저 정보를 db에 추가/ 이미 있다면 400번대 상태코드 응답

### TODO
1. [x] 깃허브 oauth를 이용해 oauth 로그인 구현
1. [x] 클라이언트로부터 `post('/oauth')` 요청으로 전달받은 user 정보들을 db에 추가
2. [x] 유저정보가 이미 DB에 있으면 `409(conflict)` 상태코드로 응답
3. [x] 회원가입 요청이 성공하면 상태코드 201과 ` jwt `토큰이 응답에 포함

### Estimated time
>Pick one

### `3h`

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the server entry point handling POST /oauth and review the existing GitHub OAuth login flow. Verify that received user information is persisted, existing users receive 409, and successful registration returns 201 with a JWT; all listed TODO items are already checked, so confirm whether any work remains.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, javascript
Domain
api, authentication, backend, database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.