Celtech/shout-it

View on GitHub
packages/api/src/authentication.js

Summary

Maintainability
A
0 mins
Test Coverage
const {
AuthenticationService,
JWTStrategy,
} = require('@feathersjs/authentication');
const { LocalStrategy } = require('@feathersjs/authentication-local');
const { expressOauth } = require('@feathersjs/authentication-oauth');
 
module.exports = (app) => {
const authentication = new AuthenticationService(app);
 
authentication.register('jwt', new JWTStrategy());
authentication.register('local', new LocalStrategy());
 
app.use('/authentication', authentication);
app.configure(expressOauth());
};