Skip to content
需要从 NextAuth.js v4 升级到最新版本吗?请查阅 版本升级指南

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