Spaces:
Build error
Build error
fix: move keys to 'cookie'
Browse files
app.py
CHANGED
@@ -16,21 +16,23 @@ if "credentials" not in auth:
|
|
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 |
}
|
|
|
|
|
|
|
|
|
|
|
27 |
|
28 |
# Initialize the authenticator
|
29 |
authenticator = stauth.Authenticate(
|
30 |
auth["credentials"],
|
31 |
auth["cookie"]["name"],
|
32 |
-
|
33 |
-
|
34 |
)
|
35 |
|
36 |
UPLOAD_DIR = Paths.RAW / "gcpt3"
|
|
|
16 |
auth["credentials"] = {
|
17 |
"usernames": {
|
18 |
"admin": {
|
|
|
19 |
"email": getenv("EMAIL"),
|
20 |
"password": getenv("PASSWORD"),
|
|
|
|
|
21 |
}
|
22 |
}
|
23 |
}
|
24 |
+
auth["cookie"] = {
|
25 |
+
"name": "Admin",
|
26 |
+
"key": "some_signature_key",
|
27 |
+
"expiry_days": 30,
|
28 |
+
}
|
29 |
|
30 |
# Initialize the authenticator
|
31 |
authenticator = stauth.Authenticate(
|
32 |
auth["credentials"],
|
33 |
auth["cookie"]["name"],
|
34 |
+
auth["cookie"]["key"],
|
35 |
+
auth["cookie"]["expiry_days"],
|
36 |
)
|
37 |
|
38 |
UPLOAD_DIR = Paths.RAW / "gcpt3"
|