Skip to content

Commit

Permalink
Merge pull request #145 from auth0/base64
Browse files Browse the repository at this point in the history
[DO NOT MERGE] Prep samples for Base64 change
  • Loading branch information
chenkie committed Dec 7, 2016
2 parents 7305ed1 + 08c75d4 commit 3791004
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/falcor-api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ dotenv.load();
app.use(express.static('.'));

var authenticate = jwt({
secret: new Buffer(process.env.AUTH0_CLIENT_SECRET, 'base64'),
secret: process.env.AUTH0_CLIENT_SECRET,
audience: process.env.AUTH0_CLIENT_ID
});

Expand Down
2 changes: 1 addition & 1 deletion examples/hapi-api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ server.register(require('hapi-auth-jwt'), function (err) {
}

server.auth.strategy('token', 'jwt', {
key: new Buffer(process.env.AUTH0_CLIENT_SECRET, 'base64'),
key: process.env.AUTH0_CLIENT_SECRET,
verifyOptions: {
algorithms: [ 'HS256' ],
audience: process.env.AUTH0_CLIENT_ID
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs-api/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var router = express.Router();
dotenv.load();

var authenticate = jwt({
secret: new Buffer(process.env.AUTH0_CLIENT_SECRET, 'base64'),
secret: process.env.AUTH0_CLIENT_SECRET,
audience: process.env.AUTH0_CLIENT_ID
});

Expand Down
2 changes: 1 addition & 1 deletion examples/relay-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ First, add the `jwt` middleware to your `/graphql` endpoint.
dotenv.load();

var authenticate = jwt({
secret: new Buffer(process.env.AUTH0_CLIENT_SECRET, 'base64'),
secret: process.env.AUTH0_CLIENT_SECRET,
audience: process.env.AUTH0_CLIENT_ID
});

Expand Down
2 changes: 1 addition & 1 deletion examples/relay-api/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var app = express()
dotenv.load();

var authenticate = jwt({
secret: new Buffer(process.env.AUTH0_CLIENT_SECRET, 'base64'),
secret: process.env.AUTH0_CLIENT_SECRET,
audience: process.env.AUTH0_CLIENT_ID
});

Expand Down

0 comments on commit 3791004

Please sign in to comment.