Here's how to authenticate a React or Next.js app using REST or GraphQL · payloadcms/payload · Discussion #1902v2