Use of sqlite3 for saving usernames and hashed passwords
Use of JWT for authorization
How to test
Create sqlite db (e.g data/users_db.db) with a table named users, with username and password columns (help query: sqlite3 data/users_db.db "CREATE TABLE users (username TEXT PRIMARY KEY, password TEXT NOT NULL);"
)
def DB_NAME, NEW_USER, NEW_PASSWORD env vars in .env and connections in secrets.toml consistently
Short Summary
How to test
users
, withusername
andpassword
columns (help query:sqlite3 data/users_db.db "CREATE TABLE users (username TEXT PRIMARY KEY, password TEXT NOT NULL);
" ).env
and connections insecrets.toml
consistentlyNEW_USER
Loom: https://www.loom.com/share/8131ca6e07204809a6fb8f84e43af43d