Skip to content

dimplast/sveltekit-graphcms-auth

Repository files navigation

Sveltekit with Graphcms - Authentication

This respository is the the result from two very good articles

  1. "Authentication in SvelteKit using cookies" from Jannik Wempe (you can read here)
  2. "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

image

3.Create the file .env and add your GraphCMS endpoint and token:

GRAPHCMS_ENDPOINT=
GRAPHCMS_TOKEN=

Get it Running

  1. Clone the repo
  2. npm install
  3. npm run dev
  4. http://localhost:3000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published