text: const { AuthenticationService, JWTStrategy } = require('@feathersjs/authentication');
  const { LocalStrategy } = require('@feathersjs/authentication-local');
  const { expressOauth, OAuthStrategy } = require('@feathersjs/authentication-oauth');
  
  class GitHubStrategy extends OAuthStrategy {
    async getEntityData(profile) {
      const baseData = await super.getEntityData(profile);
  
      return {
        ...baseData,
        username: profile.username
      };
    }
  }
  
  module.exports = app => {
    const authService = new AuthenticationService(app);
  
    authService.register('jwt', new JWTStrategy());
    authService.register('local', new LocalStrategy());
    authService.register('github', new GitHubStrategy());
  
    app.use('/authentication', authService);
    app.configure(expressOauth());
  };
  