
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI appreciate the question, but this is actually more of an Auth0/Next.js architecture question than a Sanity-specific one. Since you're asking specifically about which Auth0 SDK to use for your Next.js application, you'd get better guidance from the Auth0 community or Next.js forums where they can dive deep into the differences between their SPA SDK and Next.js SDK.
That said, I can briefly point you in the right direction: for Next.js applications, you should use Auth0's Next.js SDK (@auth0/nextjs-auth0) and create a "Regular Web Application" in Auth0's dashboard, not the SPA integration. This is because Next.js has server-side capabilities (API routes, server components, middleware) that the Next.js SDK is designed to leverage.
Where this connects to Sanity: Once you have Auth0 set up in your Next.js app, you might want to integrate it with Sanity in a few ways:
For the core Auth0 SDK selection question though, I'd recommend checking Auth0's official Next.js documentation or asking in their community forums for the most detailed guidance specific to their SDKs.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store