Closed makeitmin closed 3 years ago
In GitLab by @yjk5309 on May 19, 2021, 19:28
해당 코드
@kakaoOauth.route("/protected") @jwt_required() def protected(): current_user = get_jwt_identity() print("cu",current_user) if current_user: return jsonify( status = 200, logged_in_as = current_user ) else: return jsonify( status = 400, error = "access_token is expired" )
에러 메세지
{ "msg": "Missing JWT in headers or query_string (Missing Authorization Header; Missing 'jwt' query paramater)" }
In GitLab by @yjk5309 on May 19, 2021, 21:31
헤더에 토큰 넣어서 해결
In GitLab by @yjk5309 on May 19, 2021, 19:28
개발 시 어려운 점을 아래 리스트 중에 체크해주세요.
<개발 이슈>
1. 개발 시 이슈가 무엇이었는지 예상 동작과 현재 동작에 대해 자세히 기입해주세요.
2. 이슈에 대한 원인을 기입해주세요.
3. 문제가 발생한 코드 및 스크린샷을 기입해주세요.
해당 코드
에러 메세지