codestates / codestates/Ohjeju
Dev-Log Card 9/27 김민지
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## 오늘 프로젝트에 기여한 부분
- 딱히... 없다...
- 카카오 로그인 구현중 에러를 찾았다...
## 여러웠던 부분(선택사항)
- 인가코드를 왜 찾을수 없다는 건지 잘 모르겠다.
```js
const redirect_uri = 'http://localhost:3000/OAuth/kakao'
const client_id = process.env.KAKAO_REST_KEY
const client_secret = process.env.KAKAO_CLIENT_SECRET
let a = 'https://kauth.kakao.com/oauth/token?'
let b = `grant_type=authorization_code&`
let c = `client_id=${client_id}&`
let d = `redirect_uri=${redirect_uri}&`
let e = `client_secret=${client_secret}&`
let f = `code=${req.body.code}`
let result = a+b+c+d+e+f
const getAccess_token = await axios.post(result)
```
```
{
"error": "invalid_grant",
"error_description": "authorization code not found for code=gAtoomVo5RgouI0ex-YJsACSOkz3Tib53f92GgyK6Hw1OOpzqAQ6Wj1cn9IOIBZ80vYEXgo9dNsAAAF8JZciKA",
"error_code": "KOE320"
}
```
## 내일 기여할(도전할) 부분
1. [ ] 구글로그인이라도 먼저 구현
2. [ ] https 서버도 빨리 구현
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.