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

Pinterest Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_PINTEREST_ID
AUTH_PINTEREST_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Pinterest from "next-auth/providers/pinterest"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Pinterest],
})

Notes

  • To use in production, make sure the app has standard API access and not trial access
Auth.js © Better Auth Inc. - 2025