How to use @feathersjs/authentication-jwt - 3 common examples

To help you get started, we’ve selected a few @feathersjs/authentication-jwt 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 feathers-plus / generator-feathers-plus / test-expands / a-gens / ts / test-service.test-expected / src1 / authentication.ts View on Github external
let moduleExports = function (app: App) {
  const config = app.get('authentication');
  // !code: func_init // !end

  // Set up authentication with the secret
  app.configure(authentication(config));
  app.configure(jwt());
  app.configure(local());
  // !code: loc_1 // !end

  app.configure(oauth2(Object.assign({
    name: 'auth0',
    Strategy: Auth0Strategy,
    // !code: auth0_options // !end
  }, config.auth0)));

  app.configure(oauth2(Object.assign({
    name: 'google',
    Strategy: GoogleStrategy,
    // !code: google_options // !end
  }, config.google)));

  app.configure(oauth2(Object.assign({
github feathers-plus / generator-feathers-plus / examples / ts / 05-secret / feathers-app / src / authentication.ts View on Github external
let moduleExports = function (app: App) {
  const config = app.get('authentication');

  // Set up authentication with the secret
  app.configure(authentication(config));
  app.configure(jwt());
  app.configure(local());
  // !code: loc_1 // !end

  app.configure(oauth2(Object.assign({
    name: 'auth0',
    Strategy: Auth0Strategy
  }, config.auth0)));

  app.configure(oauth2(Object.assign({
    name: 'google',
    Strategy: GoogleStrategy
  }, config.google)));

  app.configure(oauth2(Object.assign({
    name: 'facebook',
    Strategy: FacebookStrategy
github DefinitelyTyped / DefinitelyTyped / types / feathersjs__authentication-jwt / feathersjs__authentication-jwt-tests.ts View on Github external
import feathers, { Application } from '@feathersjs/feathers';
import feathersAuthenticationJwt from '@feathersjs/authentication-jwt';

const app: Application = feathers().configure(feathersAuthenticationJwt());

@feathersjs/authentication-jwt

JWT authentication strategy for feathers-authentication using Passport

MIT
Latest version published 5 years ago

Package Health Score

72 / 100
Full package analysis

Popular @feathersjs/authentication-jwt functions