Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

Spaces:
jaivial
/
nitro-auth-express-flow
Running

App Files Files Community
nitro-auth-express-flow / server /api
3.78 kB
  • 1 contributor
History: 2 commits
jaivial's picture
jaivial
Add the login route
46d5e1a verified about 2 months ago
  • login.post.js
    1.01 kB
    Add the login route about 2 months ago
  • login.post.ts
    1.53 kB
    Okay now add nitro as ssr and add an express backend with a simple login and authentication system that creates session id and stores session id as http only cookie and in the ssr middleware for all routes we do have a check for the http only cookie to check if is present or expired to redirect to home page or to login page about 2 months ago
  • logout.post.js
    199 Bytes
    Add the login route about 2 months ago
  • logout.post.ts
    419 Bytes
    Okay now add nitro as ssr and add an express backend with a simple login and authentication system that creates session id and stores session id as http only cookie and in the ssr middleware for all routes we do have a check for the http only cookie to check if is present or expired to redirect to home page or to login page about 2 months ago
  • session.get.ts
    625 Bytes
    Okay now add nitro as ssr and add an express backend with a simple login and authentication system that creates session id and stores session id as http only cookie and in the ssr middleware for all routes we do have a check for the http only cookie to check if is present or expired to redirect to home page or to login page about 2 months ago