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

@orbiting/backend-modules-auth

Package Overview
Dependencies
Maintainers
6
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orbiting/backend-modules-auth

auth migrations, seeds, middleware, graphql schema and resolvers

  • 3.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
6
Weekly downloads
 
Created
Source

@orbiting/backend-modules-auth

Passwordless email authentication and basic user type for graphql. Sessions based on cookies by express-session. Simple Role system.

Checkout the schema and schema-types.

used by:

ENV

# where to send auth mails from
AUTH_MAIL_FROM_ADDRESS="kontakt@republik.ch"

# where to redirect after a successful/failed signin
FRONTEND_BASE_URL=http://localhost:3010


# optional

# name of the mandrill template to use for signin emails
# see seeds/email_templates/
# If undefined a simple text email will be sent
# see lib/signin.js
AUTH_MAIL_TEMPLATE_NAME=republik_signin

# overwrite api/signin/mail/subject
AUTH_MAIL_SUBJECT=sign in link

# the url where src/auth.js will be reachable
# what to prefix the sign-in link with
PUBLIC_URL=http://localhost:3020

# if truthy, @test.project-r.construction mail addresses get automatically
# signedin and no mail is sent (used for automated testing)
AUTO_LOGIN=1

static-texts

This package comes with it's own messages. You may want run yarn run translations to refresh it from the gsheet configured in package.json or change it manually in translations.js.

Caveats

At the moment this module expects a _log() function to be present on express's request which can be used to sanitize the req before logging it in debug or error cases. If you use this module without backend-modules-base you can still use the function from there.

FAQs

Package last updated on 22 Jan 2018

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