Skip to content

Commit e315b6e

Browse files
authored
Merge pull request #69 from andreafalzetti/master
Passing auth0 client secret as string without base64 encoding #62
2 parents adac49c + 8b3ba3a commit e315b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws-node-auth0-custom-authorizers-api/handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports.auth = (event, context, cb) => {
2929
const options = {
3030
audience: AUTH0_CLIENT_ID,
3131
};
32-
jwt.verify(token, new Buffer(AUTH0_CLIENT_SECRET, 'base64'), options, (err, decoded) => {
32+
jwt.verify(token, AUTH0_CLIENT_SECRET, options, (err, decoded) => {
3333
if (err) {
3434
cb('Unauthorized');
3535
} else {

0 commit comments

Comments
 (0)