Skip to content

Add ThunderID provider helper for Generic OAuth plugin - #90

Open
brionmario wants to merge 2 commits into
thunder-id:mainfrom
brionmario:feat/better-auth-provider-helper
Open

Add ThunderID provider helper for Generic OAuth plugin#90
brionmario wants to merge 2 commits into
thunder-id:mainfrom
brionmario:feat/better-auth-provider-helper

Conversation

@brionmario

Copy link
Copy Markdown
Member

Summary

Adds @thunderid/better-auth, a community provider helper for Better Auth's Generic OAuth plugin.

It returns a typed GenericOAuthConfig for a ThunderID issuer. All OAuth 2.0 / OIDC handling is performed by Better Auth itself — this package only supplies configuration, so there is no ThunderID SDK dependency and no protocol logic to keep in sync.

This follows the approach requested by the Better Auth maintainers after better-auth/better-auth#10237 (a first-class generic-oauth provider export) was declined per their social provider integration policy — they asked for a community provider helper package instead, to be listed in their docs.

What's included

  • thunderid() helper + ThunderIDOptions type (src/thunderid.ts)
  • Unit tests (src/__tests__/thunderid.test.ts)
  • README with install/usage/options docs and the callback URL to register

Checks

  • pnpm --filter @thunderid/better-auth run typecheck
  • pnpm --filter @thunderid/better-auth run test ✅ (6 passed)
  • pnpm --filter @thunderid/better-auth run lint
  • pnpm --filter @thunderid/better-auth run format:check

Related: thunder-id/thunderid#3559

…ugin

Adds @thunderid/better-auth, a community provider helper that returns a
typed GenericOAuthConfig for a ThunderID issuer to use with Better Auth's
generic-oauth plugin. All OAuth 2.0 / OIDC handling is performed by Better
Auth itself; this package only supplies configuration, so there is no
ThunderID SDK dependency or protocol logic to keep in sync.

Related: thunder-id/thunderid#3559

Signed-off-by: Brion <info@brionmario.com>
@coderabbitai

coderabbitai Bot commented Sep 2, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Team

Run ID: c67831e5-abf7-443c-a326-c43cd6a65241


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brionmario brionmario changed the title feat(better-auth): add ThunderID provider helper for Generic OAuth plugin Add ThunderID provider helper for Generic OAuth plugin Sep 2, 2026
brionmario added a commit to brionmario/better-auth that referenced this pull request Sep 2, 2026
Adds ThunderID to the Community Provider Helpers table for the Generic
OAuth plugin, per better-auth#11059.

The @thunderid/better-auth package returns a typed GenericOAuthConfig
for a ThunderID issuer; all OAuth 2.0 / OIDC handling is performed by
Better Auth itself.

Related: thunder-id/thunderid#3559
See: thunder-id/javascript-sdks#90

Signed-off-by: Brion <info@brionmario.com>
The Generic OAuth plugin's core callback route is /callback/:providerId,
not /oauth2/callback/:providerId. Verified against a running sample app
sign-in.

Signed-off-by: Brion <info@brionmario.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant