Skip to content

Commit

Permalink
fix: v1.paseto token alg keystore value to be PS384 instead of RS384
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Mar 11, 2021
1 parent f380c2f commit ae1f879
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/models/formats/paseto.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ module.exports = (provider, { opaque }) => {
}
} else if (purpose === 'public') {
if (version === 1) {
[key] = keystore.selectForVerify({ alg: 'RS384', kid });
[key] = keystore.selectForVerify({ alg: 'PS384', kid });
} else if (version === 2) {
[key] = keystore.selectForVerify({ alg: 'EdDSA', crv: 'Ed25519', kid });
}
Expand Down

0 comments on commit ae1f879

Please sign in to comment.