From dd9c6a00245d765df4f3abf897f24e667d72082c Mon Sep 17 00:00:00 2001 From: Alix JEUDI--LEMOINE Date: Tue, 26 Nov 2024 14:51:52 +0100 Subject: [PATCH] :ambulance: Force int type for ACCESS_TOKEN_EXPIRE_MINUTES to bypass os.getenv str output --- app/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/config.py b/app/config.py index 6e3bfc7..3d163f2 100644 --- a/app/config.py +++ b/app/config.py @@ -9,7 +9,7 @@ MONGODB_DATABASE = os.getenv("MONGODB_DATABASE", "memorymap") # Constants for JWT SECRET_KEY = os.getenv("JWT_SECRET_KEY", "_2YfT44$xF.Tg_xI63UH3D7:N+>pZN2';j%>7H@?e0:Xor'pV[") # temporary of course :) ALGORITHM = os.getenv("JWT_ALGORITHM", "HS256") # TODO: check if broken (don't believe) -ACCESS_TOKEN_EXPIRE_MINUTES = os.getenv("JWT_ACCESS_TOKEN_EXPIRE_MINUTES", 30) # TODO: check what to add here / maybe need to evaluate criticity of that? +ACCESS_TOKEN_EXPIRE_MINUTES = int(os.getenv("JWT_ACCESS_TOKEN_EXPIRE_MINUTES", 30)) # TODO: check what to add here / maybe need to evaluate criticity of that? # Constants for OAuth2 TOKEN_URL = "/api/v1/login" # Path to the auth \ No newline at end of file