first commit
This commit is contained in:
11
mint.py
Normal file
11
mint.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from app.utils.token_store import ApiKeyStore
|
||||
|
||||
store = ApiKeyStore("data/api_tokens.yaml")
|
||||
# res = store.mint(label="local dev")
|
||||
# print("NEW TOKEN (save this now):")
|
||||
# print(res) # {"id": "...uuid...", "token": "...plaintext..."}
|
||||
|
||||
print("List keys (no hashes):")
|
||||
print(store.list(include_inactive=True))
|
||||
|
||||
# print("Verify works?", store.verify(res["token"])) # True
|
||||
Reference in New Issue
Block a user