Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.
This report summarizes scanner evidence for teamhanko/hanko, a Go project with 9,053 GitHub stars. SynthScan examined 124,067 lines of code across 852 source files, recording 73 pattern matches distributed across 5 syntactic categories. The legacy adjusted pattern signal is 0.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 51 finding(s).
Are imports declared and package/API names verified? 22 finding(s).
Are wrappers, guards, and repeated structures necessary? 2 finding(s).
Which changes need focused human review? 73 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 73 distinct pattern matches across 5 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/frontend-sdk/README.md | 181 | // public_key: "...", | COMMENT |
| LOW | frontend/frontend-sdk/README.md | 201 | // created_at: "2025-01-01T10:00:00Z", | COMMENT |
| LOW | frontend/frontend-sdk/README.md | 241 | // Example output: | COMMENT |
| LOW | deploy/docker-compose/quickstart.keycloak.yaml | 1 | # Override file for manually testing SAML/OIDC/custom-claims against a local Keycloak | COMMENT |
| LOW | deploy/docker-compose/config-keycloak.yaml | 141 | acme_corp: | COMMENT |
| LOW | backend/dto/user.go | 61 | // | COMMENT |
| LOW | backend/handler/utils.go | 41 | //func storeSession(cfg *config.Config, persister persistence.Persister, userId uuid.UUID, rawToken jwt.Token, httpConte | COMMENT |
| LOW | backend/handler/utils.go | 61 | // ID: uuid.FromStringOrNil(sessionID.(string)), | COMMENT |
| LOW | backend/handler/utils.go | 81 | // | COMMENT |
| LOW | backend/cmd/user/format.go | 81 | } | COMMENT |
| LOW | backend/config/config.go | 21 | // `debug`, if set to `true`, adds additional debugging information to flow API responses. | COMMENT |
| LOW | backend/config/config.go | 61 | // `security_notifications` configures security notifications for important security-related events. | COMMENT |
| LOW | backend/config/config_third_party.go | 21 | // is matched by scheme alone at runtime, with no host check at all, so it carries none of the | COMMENT |
| LOW | backend/config/config_third_party.go | 41 | // | COMMENT |
| LOW | backend/config/config_third_party.go | 61 | // successful. | COMMENT |
| LOW | backend/config/config_third_party.go | 81 | // See [here](https://pkg.go.dev/github.com/gobwas/glob#Compile) for more on globbing. | COMMENT |
| LOW | backend/config/config_third_party.go | 301 | // | COMMENT |
| LOW | backend/config/config_third_party.go | 321 | // | COMMENT |
| LOW | backend/config/config_third_party.go | 341 | ID string `jsonschema:"-" yaml:"-" json:"-" koanf:"-"` | COMMENT |
| LOW | backend/config/config_third_party.go | 361 | // - consent | COMMENT |
| LOW | backend/config/config_database.go | 21 | Database string `yaml:"database" json:"database,omitempty" koanf:"database" jsonschema:"default=hanko"` | COMMENT |
| LOW | backend/config/config_username.go | 1 | package config | COMMENT |
| LOW | backend/config/config_webauthn.go | 61 | // `display_name` is the service's name that some WebAuthn Authenticators will display to the user during registration | COMMENT |
| LOW | backend/config/config_server.go | 41 | } | COMMENT |
| LOW | backend/config/config_session.go | 21 | // `cookie` contains configuration for the session cookie issued on successful registration or login. | COMMENT |
| LOW | backend/config/config_session.go | 41 | // These claims are processed at JWT generation time and can include static values, | COMMENT |
| LOW | backend/config/config_session.go | 61 | // is_verified: "{{.User.Email.IsVerified}}" # Boolean from user data | COMMENT |
| LOW | backend/config/config_session.go | 81 | // - sub | COMMENT |
| LOW | backend/config/config_saml.go | 21 | AudienceUri string `yaml:"audience_uri" json:"audience_uri" koanf:"audience_uri"` | COMMENT |
| LOW | backend/thirdparty/helper.go | 21 | // The user-controlled redirect target must be a real absolute URL. Unlike | COMMENT |
| LOW | backend/thirdparty/helper.go | 41 | // Unlike before, we no longer hard-code the scheme to http/https here. | COMMENT |
| LOW | backend/thirdparty/helper.go | 61 | // because it can confuse "trusted host as prefix" with "trusted host as | COMMENT |
| LOW | backend/thirdparty/helper.go | 81 | return false | COMMENT |
| LOW | backend/thirdparty/helper.go | 121 | // and vice versa. Keeping this strict avoids surprising behavior. | COMMENT |
| LOW | backend/thirdparty/helper.go | 161 | // Example: | COMMENT |
| LOW | backend/thirdparty/helper.go | 181 | } | COMMENT |
| LOW | backend/thirdparty/helper.go | 221 | COMMENT | |
| LOW | backend/thirdparty/helper.go | 281 | // "127.0.0.1**", "127.0.0.1**[a-z]", "127.0.0.1**.*"). Such a "**" | COMMENT |
| LOW | backend/thirdparty/helper.go | 321 | // (e.g. "127.0.0.1**", but also "*.example.com**"). Strip it and | COMMENT |
| LOW | backend/thirdparty/helper.go | 361 | COMMENT | |
| LOW | backend/thirdparty/helper.go | 381 | // without requiring the entire allowlist entry to be a valid URL. | COMMENT |
| LOW | backend/thirdparty/linking.go | 81 | } | COMMENT |
| LOW | backend/thirdparty/custom_claims.go | 181 | // without a DB. | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 1 | # For most projects, this workflow file will not need changing; you simply need | COMMENT |
| LOW | .github/workflows/codeql-analysis.yml | 61 | # ℹ️ Command-line programs to run using the OS shell. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/frontend-sdk/README.md | 193 | // address: "user@example.com", | COMMENT |
| LOW | frontend/frontend-sdk/README.md | 208 | // name: "John Doe", | COMMENT |
| LOW | frontend/frontend-sdk/README.md | 251 | // email: { address: "user@example.com", is_primary: true, is_verified: true }, | COMMENT |
| LOW | backend/README.md | 602 | "name": "Acme Corp", | CODE |
| LOW | backend/handler/user_admin_test.go | 151 | body := fmt.Sprintf(`{"id": "%s", "emails": [{"address": "test@test.com", "is_primary": true}]}`, sharedID) | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 339 | body: `{"emails": [{"address": "test@test.com", "is_primary": true}]}`, | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 344 | body: `{"id": "98a46ea2-51f6-4e30-bd29-8272de77c8c8", "emails": [{"address": "test@test.com", "is_prima | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 349 | body: `{"emails": [{"address": "test@test.com", "is_primary": true}, {"address": "test2@test.com"}]}`, | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 354 | body: `{"emails": [{"address": "test@test.com", "is_primary": true}], "created_at": "2023-06-07T13:42:4 | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 359 | body: `{"id": "b5dd5267-b462-48be-b70d-bcd6f1bbe7a5", "emails": [{"address": "test@test.com", "is_prima | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 364 | body: `{"id": "customId", "emails": [{"address": "test@test.com", "is_primary": true}]}`, | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 379 | body: `{"emails": [{"address": "test@test.com"}]}`, | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 384 | body: `{"emails": [{"address": "test@test.com", "is_primary": true"}, {"address": "test2@test.com", "is | CODE |
| LOW⚡ | backend/handler/user_admin_test.go | 389 | body: `{"emails": [{"address": "test@test.com", "is_primary": true"}, {"address": "test@test.com"}]}`, | CODE |
| LOW | backend/handler/user_test.go | 82 | s.Equal("John Doe", response.Name) | CODE |
| LOW | backend/handler/organization_admin_test.go | 58 | body: `{"name": "Acme Corp"}`, | CODE |
| LOW | backend/handler/thirdparty_callback_test.go | 151 | Name: "John Doe", | CODE |
| LOW | backend/handler/thirdparty_callback_test.go | 222 | Name: "John Doe", | CODE |
| LOW | backend/session/template_test.go | 83 | Name: "John Doe", | CODE |
| LOW | backend/session/template_test.go | 97 | "name": "John Doe", | CODE |
| LOW | backend/session/template_test.go | 128 | Name: "John Doe", | CODE |
| LOW | backend/session/template_test.go | 149 | "full_name": "John Doe", | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/elements/src/contexts/AppProvider.tsx | 352 | // Step 1: Set the authComponentFlow from props.mode | COMMENT |
| LOW | frontend/elements/src/contexts/AppProvider.tsx | 364 | // Step 2: Call init after authComponentFlow has been updated | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | frontend/elements/src/contexts/AppProvider.tsx | 352 | // Step 1: Set the authComponentFlow from props.mode | COMMENT |
| LOW | frontend/elements/src/contexts/AppProvider.tsx | 364 | // Step 2: Call init after authComponentFlow has been updated | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | e2e/helper/Matchers.ts | 54 | export async function toHaveLocalStorageEntryForUserWithCredential( | CODE |
| LOW | e2e/helper/Matchers.ts | 96 | export async function toHaveLocalStorageEntryForUserWithPasscode( | CODE |