Files
vibe-kanban/crates/remote/.sqlx/query-577b1dc54aeefe702c74a56776544a391429b561b76d36d59673e410d5d78576.json
Solomon e4e129a4e7 Revove user sessions when OAuth tokens are revoked (#1354)
OAuth tokens are revoked when the user revoke access to the OAuth app from the provider settings.
Some OAuth providers also revoke OAuth tokens when the user changes password.
2025-11-28 16:27:35 +00:00

113 lines
3.0 KiB
JSON

{
"db_name": "PostgreSQL",
"query": "\n SELECT\n id AS \"id!\",\n provider AS \"provider!\",\n state AS \"state!\",\n return_to AS \"return_to!\",\n app_challenge AS \"app_challenge!\",\n app_code_hash AS \"app_code_hash?\",\n status AS \"status!\",\n error_code AS \"error_code?\",\n expires_at AS \"expires_at!\",\n authorized_at AS \"authorized_at?\",\n redeemed_at AS \"redeemed_at?\",\n user_id AS \"user_id?\",\n session_id AS \"session_id?\",\n encrypted_provider_tokens AS \"encrypted_provider_tokens?\",\n created_at AS \"created_at!\",\n updated_at AS \"updated_at!\"\n FROM oauth_handoffs\n WHERE id = $1\n ",
"describe": {
"columns": [
{
"ordinal": 0,
"name": "id!",
"type_info": "Uuid"
},
{
"ordinal": 1,
"name": "provider!",
"type_info": "Text"
},
{
"ordinal": 2,
"name": "state!",
"type_info": "Text"
},
{
"ordinal": 3,
"name": "return_to!",
"type_info": "Text"
},
{
"ordinal": 4,
"name": "app_challenge!",
"type_info": "Text"
},
{
"ordinal": 5,
"name": "app_code_hash?",
"type_info": "Text"
},
{
"ordinal": 6,
"name": "status!",
"type_info": "Text"
},
{
"ordinal": 7,
"name": "error_code?",
"type_info": "Text"
},
{
"ordinal": 8,
"name": "expires_at!",
"type_info": "Timestamptz"
},
{
"ordinal": 9,
"name": "authorized_at?",
"type_info": "Timestamptz"
},
{
"ordinal": 10,
"name": "redeemed_at?",
"type_info": "Timestamptz"
},
{
"ordinal": 11,
"name": "user_id?",
"type_info": "Uuid"
},
{
"ordinal": 12,
"name": "session_id?",
"type_info": "Uuid"
},
{
"ordinal": 13,
"name": "encrypted_provider_tokens?",
"type_info": "Text"
},
{
"ordinal": 14,
"name": "created_at!",
"type_info": "Timestamptz"
},
{
"ordinal": 15,
"name": "updated_at!",
"type_info": "Timestamptz"
}
],
"parameters": {
"Left": [
"Uuid"
]
},
"nullable": [
false,
false,
false,
false,
false,
true,
false,
true,
false,
true,
true,
true,
true,
true,
false,
false
]
},
"hash": "577b1dc54aeefe702c74a56776544a391429b561b76d36d59673e410d5d78576"
}