Cloudinary Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/cloudinaryEnvironment Variables
AUTH_CLOUDINARY_ID
AUTH_CLOUDINARY_SECRETConfiguration
/auth.ts
import NextAuth from "next-auth"
import Cloudinary from "next-auth/providers/cloudinary"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [Cloudinary],
})Notes
- The Cloudinary
userinfoendpoint returns only asubwhich is used for both theidand theemailin the user’s profile. If you’d like to get more information about the user – you can use the Cloudinary Account Provisioning API - If the OAuth token is used against the Admin/Upload API, the user must be assigned a Master Admin role within the product environment