(ctx context.Context, sub string)
| 332 | ` |
| 333 | |
| 334 | func (q *Queries) GetOidcCodeBySub(ctx context.Context, sub string) (OidcCode, error) { |
| 335 | row := q.db.QueryRowContext(ctx, getOidcCodeBySub, sub) |
| 336 | var i OidcCode |
| 337 | err := row.Scan( |
| 338 | &i.Sub, |
| 339 | &i.CodeHash, |
| 340 | &i.Scope, |
| 341 | &i.RedirectURI, |
| 342 | &i.ClientID, |
| 343 | &i.ExpiresAt, |
| 344 | &i.Nonce, |
| 345 | &i.CodeChallenge, |
| 346 | ) |
| 347 | return i, err |
| 348 | } |
| 349 | |
| 350 | const getOidcCodeBySubUnsafe = `-- name: GetOidcCodeBySubUnsafe :one |
| 351 | SELECT sub, code_hash, scope, redirect_uri, client_id, expires_at, nonce, code_challenge FROM "oidc_codes" |
nothing calls this directly
no test coverage detected