Worksoftware2026

IdPKit

A Sign in with YourApp button for other people's apps, without touching the login you already have.

Role
Design and engineering
Built with
TypeScript, Bun, OpenID Connect, Prisma, Drizzle
Elsewhere
GitHub

Your app already has accounts. IdPKit turns it into an OpenID Connect provider, so a forum, a marketplace or a friend’s side project can log people in with them.

An identity provider is a lot more than signing a JWT. Authorization codes, PKCE, discovery, signing keys, consent, refresh-token rotation, revocation, and every one of those has its own way to go wrong. IdPKit does that layer and nothing else.

  • Keep your users
  • Keep your sessions
  • Keep your login

It never asks how someone signed in. Password, passkey, MFA, a ten-year-old session system held together with tape: you give it a function that returns the current user, and that’s the whole contract.

idp.ts
auth: {
  getCurrentUser: async (request) => yourExistingAuth(request),
  getLoginUrl: ({ returnTo }) => `/login?returnTo=${encodeURIComponent(returnTo)}`,
},
  1. Click

    Someone presses Sign in with YourApp on another site and lands on your provider.

  2. Your login

    Not signed in yet? IdPKit sends them to your own login page and waits. Your sessions, your MFA, your rules.

  3. Consent

    They see what the app is asking for, like their profile or their game library. Grants are saved, so a Connected apps page with a revoke button is a few lines.

  4. Tokens

    The app trades a single-use code, checked with PKCE, for signed tokens it verifies against your JWKS.

8
packages
3
frameworks
3
OIDC clients tested

The app on the other end doesn’t install anything of mine. Auth.js, Better Auth and openid-client all take it as plain OIDC config, and the interop tests run against all three. The standard is the integration.

First commit to npm took about a day, 30 to 31 August. Six minutes of that went on renaming the package scope and then renaming it back.

IdPKit

More work

All 2
  1. Distributed by Snowfallmusic