(ctx context.Context, arg CreateOidcCodeParams)
| 37 | } |
| 38 | |
| 39 | func (q *Queries) CreateOidcCode(ctx context.Context, arg CreateOidcCodeParams) (OidcCode, error) { |
| 40 | row := q.db.QueryRowContext(ctx, createOidcCode, |
| 41 | arg.Sub, |
| 42 | arg.CodeHash, |
| 43 | arg.Scope, |
| 44 | arg.RedirectURI, |
| 45 | arg.ClientID, |
| 46 | arg.ExpiresAt, |
| 47 | arg.Nonce, |
| 48 | arg.CodeChallenge, |
| 49 | ) |
| 50 | var i OidcCode |
| 51 | err := row.Scan( |
| 52 | &i.Sub, |
| 53 | &i.CodeHash, |
| 54 | &i.Scope, |
| 55 | &i.RedirectURI, |
| 56 | &i.ClientID, |
| 57 | &i.ExpiresAt, |
| 58 | &i.Nonce, |
| 59 | &i.CodeChallenge, |
| 60 | ) |
| 61 | return i, err |
| 62 | } |
| 63 | |
| 64 | const createOidcToken = `-- name: CreateOidcToken :one |
| 65 | INSERT INTO "oidc_tokens" ( |
no test coverage detected