Switched little_boxes
This commit is contained in:
parent
6220064951
commit
7f65fdfc90
5 changed files with 48 additions and 211 deletions
|
@ -84,9 +84,9 @@ JWT = JSONWebSignatureSerializer(JWT_SECRET)
|
|||
|
||||
|
||||
def _admin_jwt_token() -> str:
|
||||
return JWT.dumps({"me": "ADMIN", "ts": datetime.now().timestamp()}).decode(
|
||||
return JWT.dumps({"me": "ADMIN", "ts": datetime.now().timestamp()}).decode( # type: ignore
|
||||
"utf-8"
|
||||
) # type: ignore
|
||||
)
|
||||
|
||||
|
||||
ADMIN_API_KEY = get_secret_key("admin_api_key", _admin_jwt_token)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue