Reimplemented access and refresh tokens.

This commit is contained in:
2026-10-18 13:21:48 +02:00
parent 4343959c74
commit 26999d690f
28 changed files with 1510 additions and 480 deletions
@@ -0,0 +1,80 @@
{
"db_name": "PostgreSQL",
"query": "\n\t\tINSERT INTO refresh_tokens (id, access_token_id, secret_hash, expires_at, issued_at)\n\t\tVALUES ($1, $2, $3, $4, $5)\n\t\tRETURNING id, access_token_id, secret_hash, expires_at, issued_at\n\t\t",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id",
"type_info": "Uuid",
"origin": {
"Table": {
"table": "refresh_tokens",
"name": "id"
}
}
},
{
"ordinal": 1,
"name": "access_token_id",
"type_info": "Uuid",
"origin": {
"Table": {
"table": "refresh_tokens",
"name": "access_token_id"
}
}
},
{
"ordinal": 2,
"name": "secret_hash",
"type_info": "Bytea",
"origin": {
"Table": {
"table": "refresh_tokens",
"name": "secret_hash"
}
}
},
{
"ordinal": 3,
"name": "expires_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "refresh_tokens",
"name": "expires_at"
}
}
},
{
"ordinal": 4,
"name": "issued_at",
"type_info": "Timestamptz",
"origin": {
"Table": {
"table": "refresh_tokens",
"name": "issued_at"
}
}
}
],
"parameters": {
"Left": [
"Uuid",
"Uuid",
"Bytea",
"Timestamptz",
"Timestamptz"
]
},
"nullable": [
false,
false,
false,
false,
false
]
},
"hash": "a1d81c17935a785a1001ee0673e1bbb02a64b5743406428dd18f8199ad8fb77b"
}