You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"user": {"email": user_email, "full_name": "API Token User", "is_admin": user.is_adminifuserelseFalse, "auth_provider": "api_token"}, # Use actual admin status if user provided
raw_token=awaitself._generate_token(user_email=user_email, team_id=team_id, expires_at=expires_at, scope=scope, user=user) # Pass user object to include admin status
391
+
raw_token=awaitself._generate_token(user_email=user_email, jti=jti, team_id=team_id, expires_at=expires_at, scope=scope, user=user) # Pass user object to include admin status
388
392
389
393
# Hash token for secure storage
390
394
token_hash=self._hash_token(raw_token)
@@ -395,6 +399,7 @@ async def create_token(
395
399
user_email=user_email,
396
400
team_id=team_id, # Store team association
397
401
name=name,
402
+
jti=jti,
398
403
description=description,
399
404
token_hash=token_hash, # Store hash, not raw token
0 commit comments