Skip to content

Commit

Permalink
Make feathers-authentication match security documents (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
micaksica2 authored and daffl committed Aug 29, 2018
1 parent 858a098 commit d3e8ccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/authentication/src/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: 'HS256',
algorithm: 'HS512',
expiresIn: '1d'
}
};
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication/test/options.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('options', () => {
});

it('sets the algorithm', () => {
expect(options.jwt.algorithm).to.equal('HS256');
expect(options.jwt.algorithm).to.equal('HS512');
});

it('sets the expiresIn', () => {
Expand Down

0 comments on commit d3e8ccb

Please sign in to comment.