We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a19a185 + f269b9f commit 90eff9cCopy full SHA for 90eff9c
src/app/core/security.py
@@ -49,7 +49,7 @@ async def create_access_token(data: dict[str, Any], expires_delta: timedelta | N
49
if expires_delta:
50
expire = datetime.now(UTC).replace(tzinfo=None) + expires_delta
51
else:
52
- expire = datetime.now(UTC).replace(tzinfo=None) + timedelta(minutes=15)
+ expire = datetime.now(UTC).replace(tzinfo=None) + timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
53
to_encode.update({"exp": expire})
54
encoded_jwt: str = jwt.encode(to_encode, SECRET_KEY, algorithm=ALGORITHM)
55
return encoded_jwt
0 commit comments