Token based authentication

This commit is contained in:
Shivering Ocelot committed 2025-05-28 01:15:46 -05:00
1 parent 9a8e68f021
commit 5bbdfe8747
7 files changed
+121 -77

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
URL="http://localhost:5000/user/login"
DATA='{"username":"test-user","password":"123456"}'
RESPONSE=$(curl -s -X POST $URL -H "Content-Type: application/json" -d "$DATA")
echo $RESPONSE