diff options
author | haturatu <taro@eyes4you.org> | 2024-08-20 23:02:56 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-08-20 23:02:56 +0900 |
commit | 863f572f9a91d4a7fb4b064e5f480bac488fab53 (patch) | |
tree | 655723aec4220290f134b3ce167c6583db827b1d /README.md | |
parent | 5a73bb414fafca464eb6a0b3ff305bb98d3ece9c (diff) |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..afaf37b --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# deno-hono-jwt-auth + +## Usage +1. Generate `secret.key`. +``` +deno run -A generate_key.ts +``` + +2. Start server +``` +deno run -A app.ts +``` + +3. Test login +``` +curl -X POST http://localhost:8787/login \ +-H "Content-Type: application/json" \ +-d '{"username":"usesr","password":"password"}' +``` |