(ctx context.Context, accessTokenHash string)
| 395 | ` |
| 396 | |
| 397 | func (q *Queries) GetOidcToken(ctx context.Context, accessTokenHash string) (OidcToken, error) { |
| 398 | row := q.db.QueryRowContext(ctx, getOidcToken, accessTokenHash) |
| 399 | var i OidcToken |
| 400 | err := row.Scan( |
| 401 | &i.Sub, |
| 402 | &i.AccessTokenHash, |
| 403 | &i.RefreshTokenHash, |
| 404 | &i.CodeHash, |
| 405 | &i.Scope, |
| 406 | &i.ClientID, |
| 407 | &i.TokenExpiresAt, |
| 408 | &i.RefreshTokenExpiresAt, |
| 409 | &i.Nonce, |
| 410 | ) |
| 411 | return i, err |
| 412 | } |
| 413 | |
| 414 | const getOidcTokenByRefreshToken = `-- name: GetOidcTokenByRefreshToken :one |
| 415 | SELECT sub, access_token_hash, refresh_token_hash, code_hash, scope, client_id, token_expires_at, refresh_token_expires_at, nonce FROM "oidc_tokens" |
no test coverage detected