first commit

This commit is contained in:
2025-10-15 13:58:10 -05:00
commit 85d9214883
9 changed files with 300 additions and 0 deletions

11
mint.py Normal file
View 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