How to use @feathersjs/authentication-oauth - 5 common examples

To help you get started, we’ve selected a few @feathersjs/authentication-oauth examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github feathersjs / generator-feathers / generators / authentication / templates / ts / authentication.ts View on Github external
export default function(app: Application) {
  const authentication = new AuthenticationService(app);

  authentication.register('jwt', new JWTStrategy());
  authentication.register('local', new LocalStrategy());

  app.use('/authentication', authentication);
  app.configure(expressOauth());
}
github feathersjs / generator-feathers / generators / upgrade / templates / ts / authentication.ts View on Github external
export default function(app: Application) {
  const authentication = new AuthenticationService(app);

  authentication.register('jwt', new JWTStrategy());
  authentication.register('local', new LocalStrategy());

  app.use('/authentication', authentication);
  app.configure(expressOauth());
}
github feathersjs / feathers-chat-ts / src / authentication.ts View on Github external
export default function(app: Application) {
  const authentication = new AuthenticationService(app);

  authentication.register('jwt', new JWTStrategy());
  authentication.register('local', new LocalStrategy());
  authentication.register('github', new GitHubStrategy());

  app.use('/authentication', authentication);
  app.configure(expressOauth());
}
github mariusandra / insights / packages / insights-api / src / authentication.ts View on Github external
export default function(app: Application) {
  const authentication = new AuthenticationService(app);

  authentication.register('jwt', new JWTStrategy());
  authentication.register('local', new LocalStrategy());

  app.use('/authentication', authentication);
  app.configure(expressOauth());
}
github feathersjs / generator-feathers / generators / authentication / templates / js / authentication.js View on Github external
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());
};

@feathersjs/authentication-oauth

oAuth 1 and 2 authentication for Feathers. Powered by Grant.

MIT
Latest version published 18 days ago

Package Health Score

92 / 100
Full package analysis

Popular @feathersjs/authentication-oauth functions