fix: id_token format
decode bytes to utf-8 string
This commit is contained in:
parent
2cc1733126
commit
46d68e252f
1 changed files with 1 additions and 1 deletions
|
|
@ -133,7 +133,7 @@ def get_token(*args, **kwargs):
|
|||
}
|
||||
|
||||
id_token_encoded = jwt.encode(id_token, client_secret, algorithm='HS256', headers=id_token_header)
|
||||
out.update({"id_token": str(id_token_encoded)})
|
||||
out.update({"id_token": frappe.safe_decode(id_token_encoded)})
|
||||
|
||||
frappe.local.response = out
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue