Check out the example app on GitHub to see how NextAuth can integrate with a Stackbit site, allowing OAuth-based authentication and using session data in the client and server.

Live demo available allowing login with Google & GitHub.