alho94 commited on
Commit
40e25df
·
verified ·
1 Parent(s): 4d56d57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -15,9 +15,12 @@ TOKEN_EXPIRATION_MINUTES = int(os.getenv("TOKEN_EXPIRATION_MINUTES", 30))
15
  REFRESH_TOKEN_EXPIRATION_DAYS = int(os.getenv("REFRESH_TOKEN_EXPIRATION_DAYS", 7))
16
  ALLOWED_ORIGIN = os.getenv("ALLOWED_ORIGIN")
17
 
 
 
 
18
  # Fake database of API keys (hashed)
19
  API_KEYS_DB = {
20
- "user1": bcrypt.hashpw(os.getenv("DUMMY_USER_KEY"), bcrypt.gensalt()).decode("utf-8")
21
  }
22
 
23
  app = FastAPI()
 
15
  REFRESH_TOKEN_EXPIRATION_DAYS = int(os.getenv("REFRESH_TOKEN_EXPIRATION_DAYS", 7))
16
  ALLOWED_ORIGIN = os.getenv("ALLOWED_ORIGIN")
17
 
18
+
19
+ hashed_password = os.getenv("DUMMY_USER_KEY")
20
+
21
  # Fake database of API keys (hashed)
22
  API_KEYS_DB = {
23
+ "user1": hashed_password
24
  }
25
 
26
  app = FastAPI()