Use decode with utf-8 encoding.

This commit is contained in:
juanifioren 2015-07-01 17:20:16 -03:00
parent 447d026a41
commit 27110b65e4
3 changed files with 4 additions and 4 deletions

View file

@ -49,7 +49,7 @@ def encode_id_token(id_token_dic, client_secret):
Return a hash.
"""
id_token_hash = jwt.encode(id_token_dic, client_secret)
id_token_hash = jwt.encode(id_token_dic, client_secret).decode('utf-8')
return id_token_hash