[PR #5977] demo(odic-provider): init oidc provider demo #14604

Closed
opened 2026-04-13 09:32:25 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5977

State: closed
Merged: No


Summary by cubic

Adds a Next.js demo OIDC provider using better-auth, with email/password login, user consent, and dynamic client registration. This provides a working UI and API endpoints to exercise OAuth 2.0 and OpenID Connect flows.

  • New Features

    • New app under demo/oidc using Tailwind CSS.
    • Configures better-auth with oidcProvider (login at /sign-in, consent at /consent) and SQLite (better-sqlite3).
    • Exposes OAuth2/OIDC endpoints under /api/auth via toNextJsHandler.
    • UI pages for sign-in, consent, and client registration (shows client_id/secret).
    • Auth client set up with NEXT_PUBLIC_BETTER_AUTH_URL (defaults to http://localhost:3000).
  • Dependencies

    • Adds better-auth (core, next-js client/plugins) and better-sqlite3.
    • Next 16, React 19, Tailwind CSS 4.
    • ESLint 9 and TypeScript 5.

Written for commit d7cb0f71e8. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5977 **State:** closed **Merged:** No --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds a Next.js demo OIDC provider using better-auth, with email/password login, user consent, and dynamic client registration. This provides a working UI and API endpoints to exercise OAuth 2.0 and OpenID Connect flows. - **New Features** - New app under demo/oidc using Tailwind CSS. - Configures better-auth with oidcProvider (login at /sign-in, consent at /consent) and SQLite (better-sqlite3). - Exposes OAuth2/OIDC endpoints under /api/auth via toNextJsHandler. - UI pages for sign-in, consent, and client registration (shows client_id/secret). - Auth client set up with NEXT_PUBLIC_BETTER_AUTH_URL (defaults to http://localhost:3000). - **Dependencies** - Adds better-auth (core, next-js client/plugins) and better-sqlite3. - Next 16, React 19, Tailwind CSS 4. - ESLint 9 and TypeScript 5. <sup>Written for commit d7cb0f71e8ee7f360a337a5466dcd7069c47cd14. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:25 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#14604