(ctx context.Context, codeHash string)
| 310 | ` |
| 311 | |
| 312 | func (q *Queries) GetOidcCode(ctx context.Context, codeHash string) (OidcCode, error) { |
| 313 | row := q.db.QueryRowContext(ctx, getOidcCode, codeHash) |
| 314 | var i OidcCode |
| 315 | err := row.Scan( |
| 316 | &i.Sub, |
| 317 | &i.CodeHash, |
| 318 | &i.Scope, |
| 319 | &i.RedirectURI, |
| 320 | &i.ClientID, |
| 321 | &i.ExpiresAt, |
| 322 | &i.Nonce, |
| 323 | &i.CodeChallenge, |
| 324 | ) |
| 325 | return i, err |
| 326 | } |
| 327 | |
| 328 | const getOidcCodeBySub = `-- name: GetOidcCodeBySub :one |
| 329 | DELETE FROM "oidc_codes" |
no test coverage detected