Skip to content

Commit

Permalink
Use default value for browser token expiry (#1093)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchop authored Jun 18, 2024
1 parent 364e2ea commit df60b4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/web/apiv2/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
from core.schemas.user import User, UserSensitive

ACCESS_TOKEN_EXPIRE_MINUTES = datetime.timedelta(
minutes=yeti_config.get("auth", "access_token_expire_minutes")
minutes=yeti_config.get("auth", "access_token_expire_minutes", default=30)
)
BROWSER_TOKEN_EXPIRE_MINUTES = datetime.timedelta(
days=yeti_config.get("auth", "browser_token_expire_minutes")
minutes=yeti_config.get("auth", "browser_token_expire_minutes", default=43200)
)
SECRET_KEY = yeti_config.get("auth", "secret_key")
ALGORITHM = yeti_config.get("auth", "algorithm")
Expand Down

0 comments on commit df60b4b

Please sign in to comment.