Sveltekit with Graphcms - Authentication
This respository is the the result from two very good articles
- "Authentication in SvelteKit using cookies" from Jannik Wempe (you can read here)
- "Next.js Authentication with NextAuth.js and GraphCMS" from Jamie Barton (you can read here)
and
of course the very good resources from Scott Spence
1.Create a new GraphCMS project.
2.Create a Model (MyUser) with two fields Email and Password
3.Create the file .env and add your GraphCMS endpoint and token:
GRAPHCMS_ENDPOINT=
GRAPHCMS_TOKEN=
Get it Running
- Clone the repo
- npm install
- npm run dev
- http://localhost:3000