diff --git a/postman/collections/Expenses Server/API/Auth/Token/Revoke token.request.yaml b/postman/collections/Expenses Server/API/Auth/Token/Revoke token.request.yaml index eba6325..d7477fc 100644 --- a/postman/collections/Expenses Server/API/Auth/Token/Revoke token.request.yaml +++ b/postman/collections/Expenses Server/API/Auth/Token/Revoke token.request.yaml @@ -4,7 +4,7 @@ method: POST body: type: urlencoded content: - token: "{{vault:refresh_token}}" + token: "{{vault:expenses_refresh_token}}" auth: type: noauth order: 3000 diff --git a/server/migrations/20261231000000_seed_demo_data.sql b/server/migrations/20261231000000_seed_demo_data.sql index f10dbfe..0481895 100644 --- a/server/migrations/20261231000000_seed_demo_data.sql +++ b/server/migrations/20261231000000_seed_demo_data.sql @@ -7,6 +7,37 @@ VALUES ( '00000000-0000-0000-0000-000000000002' ); +INSERT INTO + user_apps (id, user_id) +VALUES ( + '00000000-0000-0000-0000-000000000001', + '00000000-0000-0000-0000-000000000001' + ), + ( + '00000000-0000-0000-0000-000000000002', + '00000000-0000-0000-0000-000000000002' + ); + +INSERT INTO + user_app_secrets ( + id, + app_id, + secret_hash, + expires_at + ) +VALUES ( + '00000000-0000-0000-0000-000000000001', + '00000000-0000-0000-0000-000000000001', + sha256 (convert_to ('test', 'UTF8')), + '2030-01-01T00:00:00Z' + ), + ( + '00000000-0000-0000-0000-000000000002', + '00000000-0000-0000-0000-000000000002', + sha256 (convert_to ('test', 'UTF8')), + '2030-01-01T00:00:00Z' + ); + INSERT INTO accounts (id, name) VALUES (