Seed user apps and secrets.

This commit is contained in:
2026-10-09 18:35:16 +02:00
parent dbf6c3d9f5
commit 238c125a5c
2 changed files with 32 additions and 1 deletions
@@ -4,7 +4,7 @@ method: POST
body:
type: urlencoded
content:
token: "{{vault:refresh_token}}"
token: "{{vault:expenses_refresh_token}}"
auth:
type: noauth
order: 3000
@@ -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 (