Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

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 © Balázs Orbán and Team - 2024