From 08beeed9c57f5e58417cb4e0e32b0ff4da7d27f2 Mon Sep 17 00:00:00 2001 From: Eric Kryski Date: Wed, 9 Aug 2017 19:51:44 -0600 Subject: [PATCH] Revert "Make feathers-authentication match security documents (#554)" (#556) This reverts commit b375ae6baf7f48e6dde69c3dd9a7252956f449ed. --- packages/authentication/src/options.js | 2 +- packages/authentication/test/options.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/authentication/src/options.js b/packages/authentication/src/options.js index d505553ab1..b5d4c70711 100644 --- a/packages/authentication/src/options.js +++ b/packages/authentication/src/options.js @@ -18,7 +18,7 @@ const defaults = { audience: 'https://yourdomain.com', // The resource server where the token is processed subject: 'anonymous', // Typically the entity id associated with the JWT issuer: 'feathers', // The issuing server, application or resource - algorithm: 'HS512', + algorithm: 'HS256', expiresIn: '1d' } }; diff --git a/packages/authentication/test/options.test.js b/packages/authentication/test/options.test.js index 5f9f3bf9bd..c505aa9cb0 100644 --- a/packages/authentication/test/options.test.js +++ b/packages/authentication/test/options.test.js @@ -81,7 +81,7 @@ describe('options', () => { }); it('sets the algorithm', () => { - expect(options.jwt.algorithm).to.equal('HS512'); + expect(options.jwt.algorithm).to.equal('HS256'); }); it('sets the expiresIn', () => {