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

Method GetOidcCodeBySub

internal/repository/oidc_queries.sql.go:334–348  ·  view source on GitHub ↗
(ctx context.Context, sub string)

Source from the content-addressed store, hash-verified

332`
333
334func (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
350const getOidcCodeBySubUnsafe = `-- name: GetOidcCodeBySubUnsafe :one
351SELECT sub, code_hash, scope, redirect_uri, client_id, expires_at, nonce, code_challenge FROM "oidc_codes"

Callers

nothing calls this directly

Calls 1

QueryRowContextMethod · 0.80

Tested by

no test coverage detected