Back

Next.js SSR auth issue

  • 0
  • Auth
  • Web
Raai!
12 Mar, 2024, 13:19

I am following along with the tutorial on Next.js SSR from the docs and faced the error any help would be much appreciated.

versions i am using Next.js: 14.1.3 node-appwrite:12.0.0 i did not change any code (copied as it is from the docs)

my .env file is setups like this: NEXT_APPWRITE_KEY=apikey NEXT_PUBLIC_APPWRITE_ENDPOINT=https://cloud.appwrite.io/v1 NEXT_PUBLIC_APPWRITE_PROJECT=projectid

TL;DR
Developers are encountering an auth issue while following the Next.js SSR tutorial. Versions being used: Next.js 14.1.3 and node-appwrite 12.0.0. The issue seems to stem from the environment setup with Appwrite keys and endpoints. Double-check the .env file setup and ensure the values are correct.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more