Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- async
- Class
- dict
- git
- Props
- flask
- lambda
- 카톡
- RDS
- EC2
- S3
- node
- react
- TypeScript
- NeXT
- 중급파이썬
- pandas
- 튜플
- SAA
- crud
- Vue
- MongoDB
- 파이썬
- SSA
- wetube
- 채팅
- merge
- docker
- socket io
- AWS
Archives
- Today
- Total
목록hashlib (1)
초보 개발자

@app.route('/') def home(): # 현재 이용자의 컴퓨터에 저장된 cookie 에서 mytoken 을 가져옵니다. token_receive = request.cookies.get('mytoken') print(token_receive) try: # 암호화되어있는 token의 값을 우리가 사용할 수 있도록 디코딩(암호화 풀기)해줍니다! payload = jwt.decode(token_receive, SECRET_KEY, algorithms=['HS256']) user_info = db.user.find_one({"id": payload['id']}) return render_template('index.html', nickname=user_info["nick"]) # 만약 해당 token..
AI 웹개발 트랙 - 내배캠/3주차
2021. 12. 28. 15:30