The first visit to the UI creates the account from a username and password; after that every API route needs a session cookie from logging in. Accounts are stored in app_user (Argon2id password hashes) and sessions in user_session (SHA-256 token hashes, 30 days). The account page lets the user save a Listenbrainz token, checked with Listenbrainz first. It takes priority over listenbrainz.token from the config for LB Radio suggestions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
280 B
JSON
13 lines
280 B
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "DELETE FROM \"user_session\" WHERE expires_at <= NOW()",
|
|
"describe": {
|
|
"columns": [],
|
|
"parameters": {
|
|
"Left": []
|
|
},
|
|
"nullable": []
|
|
},
|
|
"hash": "a3e08cec820c4f37a3461e7e7a88a04c9b2f4ed00929c30bdd723cfe16103332"
|
|
}
|