Gumroad Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/gumroadEnvironment Variables
AUTH_GUMROAD_ID
AUTH_GUMROAD_SECRETConfiguration
- Go to Gumroad Advanced Settings
- Create a new OAuth application
- Add your callback URL
- Copy your Client ID and Client Secret
- Add them to your
.env.localfile:
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],
})