New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

@codewithshin/svelte-auth

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codewithshin/svelte-auth

Register, Login, Forgot password, Reset password components using Sendgrid and MongoDB.

Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
5
-16.67%
Maintainers
1
Weekly downloads
 
Created
Source

Svelte-auth

Sveltekit-auth app made with Sveltekit and Mongodb Cloud on top of refact0r/sveltekit-todos.

This includes

  • Registration
  • Login/Logout
  • Confirm email
  • Reset password

Minimum dependencies

  - "@lukeed/uuid": "^2.0.0"
  - "cookie": "^0.4.1"
  - "dotenv": "^10.0.0" 
  -	"jsonwebtoken": "^8.5.1" 
  - "jwt-decode": "^3.1.2"
  - "mongodb": "^4.1.4", 
  - "nodemailer": "^6.7.2",
  - "nodemailer-sendgrid-transport": "^0.2.0", 
  - "string-hash": "^1.1.3" 
  - "uuid":	"^8.3.2"

Geting started

Clone and run npm install

git clone git@github.com:shinokada/sveltekit-auth.git 
cd sveltekit-auth 
npm install

Change .env.example to .env and update it

MONGODB_URI="your-mongodb-uri" NODE_ENV="development" SECRET="your-secret"
MAILTRAP_USER="your-mailtrap-user" MAILTRAP_PASS="your-mail-trap-pass"
DEV_URL="http://localhost:3000" EMAIL_FROM="hello@example.com" NAME_FROM="John Doe"
SENDGRIP_API="sendgrid-api-key"

You need to have a MongoDB running or create a free new account. I used Mailtrap for development. You need to create a free new account for development. If you are not using Mailtrap, you need to update the src/lib/nodemailer.js file.

Run npm run dev

npm run dev

Keywords

svelte

FAQs

Package last updated on 12 Mar 2022

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