Skip to content

Commit

Permalink
Merge pull request #140 from matthewstory/master
Browse files Browse the repository at this point in the history
[#138] actually pass to jwt.encode
  • Loading branch information
vimalloc authored Apr 11, 2018
2 parents ae0c7cc + 43fb129 commit ecb6fe6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flask_jwt_extended/tokens.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def _encode_jwt(additional_token_data, expires_delta, secret, algorithm,
if expires_delta:
token_data['exp'] = now + expires_delta
token_data.update(additional_token_data)
encoded_token = jwt.encode(token_data, secret, algorithm).decode('utf-8')
encoded_token = jwt.encode(token_data, secret, algorithm,
json_encoder=json_encoder).decode('utf-8')
return encoded_token


Expand Down

0 comments on commit ecb6fe6

Please sign in to comment.