(ctx context.Context, sub string)
| 439 | ` |
| 440 | |
| 441 | func (q *Queries) GetOidcTokenBySub(ctx context.Context, sub string) (OidcToken, error) { |
| 442 | row := q.db.QueryRowContext(ctx, getOidcTokenBySub, sub) |
| 443 | var i OidcToken |
| 444 | err := row.Scan( |
| 445 | &i.Sub, |
| 446 | &i.AccessTokenHash, |
| 447 | &i.RefreshTokenHash, |
| 448 | &i.CodeHash, |
| 449 | &i.Scope, |
| 450 | &i.ClientID, |
| 451 | &i.TokenExpiresAt, |
| 452 | &i.RefreshTokenExpiresAt, |
| 453 | &i.Nonce, |
| 454 | ) |
| 455 | return i, err |
| 456 | } |
| 457 | |
| 458 | const getOidcUserInfo = `-- name: GetOidcUserInfo :one |
| 459 | SELECT sub, name, preferred_username, email, "groups", updated_at FROM "oidc_userinfo" |
no test coverage detected