Skip to content
The Auth.js project is now part of Better Auth.

Gumroad Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/gumroad

Environment Variables

AUTH_GUMROAD_ID
AUTH_GUMROAD_SECRET

Configuration

  1. Go to Gumroad Advanced Settings
  2. Create a new OAuth application
  3. Add your callback URL
  4. Copy your Client ID and Client Secret
  5. Add them to your .env.local file:
AUTH_GUMROAD_ID="your-client-id"
AUTH_GUMROAD_SECRET="your-client-secret"
/auth.ts
import NextAuth from "next-auth"
import Gumroad from "next-auth/providers/gumroad"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Gumroad],
})
Auth.js © Better Auth Inc. - 2025