Skip to content

Mathieu-R/streamwave-auth

Repository files navigation

dependencies Status

streamwave-auth

authentication api for streamwave.

Usage

npm install && NODE_ENV=production node server.js

You need some stuff on your server

  • MongoDB

You need to set some environment variables

DBURL: mongo db connection string (https://docs.mongodb.com/manual/reference/connection-string/)

Some credentials for Google Oauth2 : https://console.cloud.google.com/apis/credentials => Create credentials => id client oauth + autorize your app domain and your callback url.

GOOGLEID: google oauth2 client id.
GOOGLESECRET: google oauth2 secret.
GOOGLECALLBACKPROD: google oauth2 callback.

JWT_SECRET: strong secret for JSON WEB TOKEN.
MAIL_HOST_PROD: host url for mail (ex: smtp.example.com).
MAIL_PORT_PROD: smtp port for mail.
MAIL_USER_PROD and MAIL_PASSWORD_PROD: credentials of the email that will send the emails (account verification, password forgotten,...).

Caveats

In developpement

  • You need maildev to catch mails.

MAIL_HOST_DEV: host url for mail (ex: localhost).
MAIL_PORT_DEV: smtp port for mail (ex: 1025 for maildev).

About

authentication api for streamwave.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors