Skip to content

Commit

Permalink
Minor changes to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
val500 committed Dec 20, 2024
1 parent adb447b commit bed4c46
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion server/src/api/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,11 @@ def get_agents_on_queue(queue_name):


def generate_token(allowed_resources, secret_key):
"""Generates JWT token with queue permission given a secret key"""
"""
Generates JWT token with queue permission given a secret key
See retrieve_token for more information on the contents of
the token payload
"""
expiration_time = datetime.utcnow() + timedelta(seconds=2)
token_payload = {
"exp": expiration_time,
Expand Down

0 comments on commit bed4c46

Please sign in to comment.