Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

we-plugin-passport-jwt

npm version Build Status Coverage Status

JWT authentication strategy plugin for We.js build with jsonwebtoken and passport-jwt

Installation

we i we-plugin-passport-jwt

Configuration

Documentation about configuration:

See:

    // --- 
    passport: {
      strategies: {
        // session
        jwt: {
          secretOrKey: null, // REQUIRED!
          
          // optional configs:
         
          algorithm: 'HS256',
          audience: null, // will be set after load all plugins
          issuer: 'wejs.org',
          //jwtid: undefined,
          //subject: undefined,
          //noTimestamp: undefined,
          //header: undefined,
          expiresIn: 10080, // in seconds

          session: false,    
        }
      }
    },
    // ---

routes:

Authenticate and get token:

post /auth/jwt/authenticate

Post email and password to /auth/jwt/authenticate.

Links

NPM Info:

NPM

License

Under the MIT license.

About

JWT authentication strategy plugin for We.js

Topics

Resources

Releases

No releases published

Packages

No packages published