cjber commited on
Commit
9832c5b
·
1 Parent(s): a14102c

fix: add missing keys

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -1,5 +1,4 @@
1
  from os import getenv
2
- from pathlib import Path
3
 
4
  import polars as pl
5
  import py7zr
@@ -17,8 +16,11 @@ if "credentials" not in auth:
17
  auth["credentials"] = {
18
  "usernames": {
19
  "admin": {
 
20
  "email": getenv("EMAIL"),
21
  "password": getenv("PASSWORD"),
 
 
22
  }
23
  }
24
  }
@@ -26,7 +28,7 @@ if "credentials" not in auth:
26
  # Initialize the authenticator
27
  authenticator = stauth.Authenticate(
28
  auth["credentials"],
29
- # auth["cookie"]["name"],
30
  # auth["cookie"]["key"],
31
  # auth["cookie"]["expiry_days"],
32
  )
 
1
  from os import getenv
 
2
 
3
  import polars as pl
4
  import py7zr
 
16
  auth["credentials"] = {
17
  "usernames": {
18
  "admin": {
19
+ "name": "Admin",
20
  "email": getenv("EMAIL"),
21
  "password": getenv("PASSWORD"),
22
+ "key": "some_signature_key",
23
+ "expiry_days": 30,
24
  }
25
  }
26
  }
 
28
  # Initialize the authenticator
29
  authenticator = stauth.Authenticate(
30
  auth["credentials"],
31
+ auth["cookie"]["name"],
32
  # auth["cookie"]["key"],
33
  # auth["cookie"]["expiry_days"],
34
  )