Skip to content

Commit

Permalink
[#138] forgot to bring over one change (to actually pass it to jwt.en…
Browse files Browse the repository at this point in the history
…code 🤦)

Signed-off-by: Matthew Story <[email protected]>
  • Loading branch information
matthewstory committed Apr 11, 2018
1 parent a860550 commit 43fb129
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 43fb129

Please sign in to comment.