🚑 Force int type for ACCESS_TOKEN_EXPIRE_MINUTES to bypass os.getenv str output
continuous-integration/drone/push Build is passing Details

master
Alix JEUDI--LEMOINE 5 months ago
parent 4393df128b
commit dd9c6a0024

@ -9,7 +9,7 @@ MONGODB_DATABASE = os.getenv("MONGODB_DATABASE", "memorymap")
# Constants for JWT # Constants for JWT
SECRET_KEY = os.getenv("JWT_SECRET_KEY", "_2YfT44$xF.Tg_xI63UH3D7:N+>pZN2';j%>7H@?e0:Xor'pV[") # temporary of course :) 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) 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 # Constants for OAuth2
TOKEN_URL = "/api/v1/login" # Path to the auth TOKEN_URL = "/api/v1/login" # Path to the auth
Loading…
Cancel
Save