Socket
Socket
Sign inDemoInstall

loopback-passport-jwt

Package Overview
Dependencies
29
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    loopback-passport-jwt

Loopback module with passport for local or social login and JWT (no session)


Version published
Weekly downloads
1
Maintainers
1
Install size
6.77 MB
Created
Weekly downloads
 

Readme

Source

loopback-passport-jwt

Loopback module with passport for local or social login and JWT (no session).

See the example of use: https://github.com/miyoda/loopback-passport-jwt-standalone#readme

##config Use a config file like this and delete unnecesary integrations

{
  "authPath": "/auth"
  ,"authOpts": {
    "scope": []
  }
  ,"jwt": {
    "secretOrKey": "ssssssssssssh",
    "expiresInSeconds": 30
  }
  ,"facebook": {
    "clientID": "--------",
    "clientSecret": "---------",
    "profileFields": ["id", "displayName", "photos", "email"],
    "scope": []
  }
  ,"google": {
    "clientID": "------",
    "clientSecret": "------"
  }
  ,"instagram": {
    "clientID": "------",
    "clientSecret": "------"
  }
  ,"local": {
    "usernameField": "username"
  }
}

##facebook Add passport-facebook dependency

npm install --save passport-facebook Follow passport-facebook readme for obtain secretKey

##google Add passport-google dependency

npm install --save passport-google Follow passport-google readme for obtain secretKey

##instagram Add passport-instagram dependency

npm install --save passport-instagram Follow passport-facebook readme for obtain secretKey

##local Add passport-local dependency

npm install --save passport-local Follow passport-facebook readme for obtain secretKey

##TODO It's not finished! *Config apikeys *TEST google integration *TEST instagram integration *Implement local integration

Keywords

FAQs

Last updated on 03 Nov 2016

Did you know?

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc