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

@krypton-org/krypton-auth

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@krypton-org/krypton-auth

Express authentication middleware, using GraphQL and JSON Web Tokens.

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Express authentication middleware, using GraphQL and JSON Web Tokens.

Krypton Authentication is a middleware for Express offering an API for login, registration, password recovery and account management with GraphQL & JSON Web Tokens.

It is a free & open-source alternative to Firebase Authentication.

  • Documentation — Consult the quick start guide and the online documentation.

Features

  • Authentication based on JSON Web Tokens
  • XSS and CSRF protection
  • Easy to customize the user data model
  • Easy to integrate into web apps & mobile apps
  • Easy to scale
  • Test IDE included for development

Installation

npm install @krypton-org/krypton-auth --save
# or
yarn add @krypton-org/krypton-auth

Assuming that you have a MongoDB instance running on mongodb://localhost:27017/users, you can run the following simple example.

const kryptonAuth = require('@krypton-org/krypton-auth');
const express = require('express');

const app = express();

// API entry point is localhost:5000/auth
app.use('/auth', kryptonAuth());

app.listen(process.env.PORT || 5000, () => {
    console.log(`server is listening on ${process.env.PORT || 5000}`)
})

See the documentation for more details.

Keywords

FAQs

Package last updated on 15 May 2020

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