diff options
Diffstat (limited to 'packages/meshbay-common/src/meshbay_common')
| -rw-r--r-- | packages/meshbay-common/src/meshbay_common/handshake.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/handshake.py b/packages/meshbay-common/src/meshbay_common/handshake.py index c3d5b94..dad8cdc 100644 --- a/packages/meshbay-common/src/meshbay_common/handshake.py +++ b/packages/meshbay-common/src/meshbay_common/handshake.py @@ -343,7 +343,7 @@ def authorize_token( return AuthorizedPeer( user_id=user_id, group_id=group_id, - username=decoded.get("username", ""), + username=str(decoded.get("username") or "")[:64], jti=jti, ) |