From ba31bc24a619c83efc53a0f3909276d664c82dec Mon Sep 17 00:00:00 2001 From: Andrew-71 Date: Sat, 12 Oct 2024 22:31:07 +0300 Subject: [PATCH] Update README.md --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4036fda..6d48fbb 100644 --- a/README.md +++ b/README.md @@ -9,16 +9,17 @@ with(out) blazingly fast cloud-native web3 memory-safe blockchain reactive AI This should be done by **October 17th 2024**. Or, at the very least, in a state that proves I am competent Go developer. -## Current functionality +## Commands -## `serve` +## `pye serve [--config] [--port] [--db]` + +Serve a simple JWT auth system * `POST /register` - register a user with Basic Auth * `POST /login` - get a JWT token by Basic Auth * `GET /pem` - get PEM-encoded public RS256 key -* Data persistently stored in an SQLite database -* RS256 key loaded from a file or generated on startup if missing +* Data and RS256 key persistently stored in an SQLite database and a PEM file -## `verify` +## `pye verify ` -* Verify JWT via public key in a PEM file \ No newline at end of file +Verify a JWT with a public key from a PEM file \ No newline at end of file