diff options
author | John Nduli | 2024-08-15 14:13:38 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-08-15 10:22:58 -0500 |
commit | 03c98f69e3c2069cde81a995f7591a35b7eda01c (patch) | |
tree | a84529081006593e80ae25eb7a8407aa0a6f202b /gn_auth/auth/authorisation/users/masquerade/views.py | |
parent | 30611d4b7c3ca59ff5eca858b79ea0fe60c6a311 (diff) | |
download | gn-auth-03c98f69e3c2069cde81a995f7591a35b7eda01c.tar.gz |
fix: bugs with generating auth tokens
Diffstat (limited to 'gn_auth/auth/authorisation/users/masquerade/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/users/masquerade/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/users/masquerade/views.py b/gn_auth/auth/authorisation/users/masquerade/views.py index 71cf98d..68f19ee 100644 --- a/gn_auth/auth/authorisation/users/masquerade/views.py +++ b/gn_auth/auth/authorisation/users/masquerade/views.py @@ -33,7 +33,7 @@ def masquerade() -> Response: return new_token def __dump_token__(tok): return { - key: value for key, value in tok.items() + key: value for key, value in asdict(tok).items() if key in ("access_token", "refresh_token", "expires_in", "token_type") } |