(ctx context.Context, codeHash string)
| 374 | ` |
| 375 | |
| 376 | func (q *Queries) GetOidcCodeUnsafe(ctx context.Context, codeHash string) (OidcCode, error) { |
| 377 | row := q.db.QueryRowContext(ctx, getOidcCodeUnsafe, codeHash) |
| 378 | var i OidcCode |
| 379 | err := row.Scan( |
| 380 | &i.Sub, |
| 381 | &i.CodeHash, |
| 382 | &i.Scope, |
| 383 | &i.RedirectURI, |
| 384 | &i.ClientID, |
| 385 | &i.ExpiresAt, |
| 386 | &i.Nonce, |
| 387 | &i.CodeChallenge, |
| 388 | ) |
| 389 | return i, err |
| 390 | } |
| 391 | |
| 392 | const getOidcToken = `-- name: GetOidcToken :one |
| 393 | SELECT sub, access_token_hash, refresh_token_hash, code_hash, scope, client_id, token_expires_at, refresh_token_expires_at, nonce FROM "oidc_tokens" |
nothing calls this directly
no test coverage detected