MCPcopy
hub / github.com/tinyauthapp/tinyauth / GetOidcCode

Method GetOidcCode

internal/repository/oidc_queries.sql.go:312–326  ·  view source on GitHub ↗
(ctx context.Context, codeHash string)

Source from the content-addressed store, hash-verified

310`
311
312func (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
328const getOidcCodeBySub = `-- name: GetOidcCodeBySub :one
329DELETE FROM "oidc_codes"

Callers 1

GetCodeEntryMethod · 0.80

Calls 1

QueryRowContextMethod · 0.80

Tested by

no test coverage detected