Doug Docs

Identity Overview

@caffeinebounce/identity is the package for sign-in, sign-up, recovery, MFA, and account-management flows that need a polished UI plus a documented server callback path.

Install

yarn add @caffeinebounce/identity

Package shape

  • The root entrypoint is for client-safe UI and helpers.
  • @caffeinebounce/identity/server exposes the callback handler and other server-safe utilities.
  • The package assumes a Next.js and Supabase-style integration model, but the public contract is kept at the exported component and handler level.

Public entrypoints

Root

@caffeinebounce/identity

View source

Notable exports

AuthFormLayoutAuthFormLayoutPropsAuthHeaderAuthHeaderPropsAuthPageLayoutAuthPageLayoutPropsConsentItemDeleteAccountSectionDeleteAccountSectionPropsEmailSectionEmailSectionPropsForgotPasswordForm

Build targets

  • ./dist/index.d.mts
  • ./dist/index.d.ts
  • ./dist/index.js
  • ./dist/index.mjs

Server

@caffeinebounce/identity/server

View source

Notable exports

AuthCallbackConfigcreateAuthCallbackHandlerGeolocationInfogenerateSecureTokengetClientIPgetGeolocationFromIPhashString

Build targets

  • ./dist/server.d.mts
  • ./dist/server.d.ts
  • ./dist/server.js
  • ./dist/server.mjs

On this page