Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

edgy-auth

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

edgy-auth

this project is an extention of my standard auth system backed by a database.

  • 0.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Edgy Auth

this project is an extention of my standard auth system backed by a database.

the idea is to make user authentication easy and simple on the edge.

design

backed by a d1 users table

cache authenticated seasions in kv store

binding

d1 = UGC
kv = edgy

Schema

this depends on the fields

CREATE TABLE users (
    id: string,
    username: string,
    email: string,
    password: string,
--     last_login: number,
--     display_name: string,
--     photo: string,
    
)

Design requirements.

  • GET, POST, login

  • GET, logout

  • GET, POST, register

  • POST, token

  • GET, POST profile

templates: login, register, profile

dev: middleware, config

Cloudflare.

So the point is you can put this edge router in front of your pages function or an external application.

Sample use cases

Pages
import 

FAQs

Package last updated on 01 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc