codestates / codestates/stylepalette

[Dev Log] 김규현 / 21.08.19

Open
#98 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
2
PR merge metrics
No merged PRs in 30d

Description

## 오늘은 어떻게 프로젝트에 기여했나요?
- 카카오와 구글 OAuth 기능 구현
- 배포시 일어나는 에러 핸들링

## 오늘의 프로젝트에서 힘든 점은 무엇인가요?
- 아래처럼 배포 후 로그인하고 나서 곧바로 마이페이지를 로드했을때 토큰이 만료됬다는 메시지를 받음
- 여러방면으로 검색해본 결과 우선 토큰을 verify 할 때 옵션으로 {ignoreexpiration: true}를 넣어줘서 기능이 동작하게 만들었다.
```js
//todo: 이곳에 코드를 작성하세요
0|index | TokenExpiredError: jwt expired
0|index | at /home/ubuntu/stylepalette/server/node_modules/jsonwebtoken/verify.js:152:21
0|index | at getSecret (/home/ubuntu/stylepalette/server/node_modules/jsonwebtoken/verify.js:90:14)
0|index | at Object.module.exports [as verify] (/home/ubuntu/stylepalette/server/node_modules/jsonwebtoken/verify.js:94:10)
0|index | at /home/ubuntu/stylepalette/server/src/build/controllers/userinfo.js:13:46
0|index | at Generator.next ()
0|index | at /home/ubuntu/stylepalette/server/node_modules/tslib/tslib.js:117:75
0|index | at new Promise ()
0|index | at Object.__awaiter (/home/ubuntu/stylepalette/server/node_modules/tslib/tslib.js:113:16)
0|index | at getUserinfo (/home/ubuntu/stylepalette/server/src/build/controllers/userinfo.js:8:49)
0|index | at Layer.handle [as handle_request] (/home/ubuntu/stylepalette/server/node_modules/express/lib/router/layer.js:95:5) {
0|index | expiredAt: 2021-08-15T09:14:12.000Z
0|index | }

```

## 내일은 프로젝트에 기여하기 위해 무엇을 해야 하나요?
- 클라이언트 배포에 따른 서버와 싱크를 맞춰가면서 에러핸들링
- 클라이언트 기능구현 도와주기

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.