codestates / codestates/GatherCoding

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

未关闭
#31 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
3h server
主要语言
JavaScript
星标
0
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

### 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`

贡献指南

这个仓库没有索引到贡献指南

调研方向

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.

由索引模型根据 Issue 内容生成。

评估

技术栈
github, javascript
领域
api, authentication, backend, database
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。