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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.