Spaces:
Build error
Build error
fix: add missing keys
Browse files
app.py
CHANGED
@@ -18,15 +18,20 @@ if "credentials" not in auth:
|
|
18 |
"admin": {
|
19 |
"email": getenv("EMAIL"),
|
20 |
"password": getenv("PASSWORD"),
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
}
|
23 |
}
|
24 |
auth["cookie"] = {
|
25 |
-
"name": "
|
26 |
"key": "some_signature_key",
|
27 |
"expiry_days": 30,
|
28 |
}
|
29 |
|
|
|
30 |
# Initialize the authenticator
|
31 |
authenticator = stauth.Authenticate(
|
32 |
auth["credentials"],
|
|
|
18 |
"admin": {
|
19 |
"email": getenv("EMAIL"),
|
20 |
"password": getenv("PASSWORD"),
|
21 |
+
"first_name": "Admin",
|
22 |
+
"last_name": "Admin",
|
23 |
+
"logged_in": False,
|
24 |
+
"roles": ["viewer"],
|
25 |
}
|
26 |
}
|
27 |
}
|
28 |
auth["cookie"] = {
|
29 |
+
"name": "some_cookie_name",
|
30 |
"key": "some_signature_key",
|
31 |
"expiry_days": 30,
|
32 |
}
|
33 |
|
34 |
+
|
35 |
# Initialize the authenticator
|
36 |
authenticator = stauth.Authenticate(
|
37 |
auth["credentials"],
|