Use decode with utf-8 encoding.
This commit is contained in:
parent
447d026a41
commit
27110b65e4
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue