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

Method GetOidcCodeUnsafe

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

Source from the content-addressed store, hash-verified

374`
375
376func (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
392const getOidcToken = `-- name: GetOidcToken :one
393SELECT sub, access_token_hash, refresh_token_hash, code_hash, scope, client_id, token_expires_at, refresh_token_expires_at, nonce FROM "oidc_tokens"

Callers

nothing calls this directly

Calls 1

QueryRowContextMethod · 0.80

Tested by

no test coverage detected