Skip to content

Commit 82ab395

Browse files
committed
bump the version
1 parent 10403ed commit 82ab395

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ibmcloud-appid",
3-
"version": "4.2.1",
3+
"version": "5.0.0",
44
"description": "Node.js SDK for the IBM Cloud App ID service",
55
"main": "lib/appid-sdk.js",
66
"scripts": {

samples/web-app-sample-server.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,7 @@ app.get("/protected", function tryToRefreshTokenIfNotLoggedIn(req, res, next) {
150150
return next();
151151
}
152152

153-
webAppStrategy.refreshTokens(req, req.cookies.refreshToken).finally(function() {
154-
next();
155-
});
153+
webAppStrategy.refreshTokens(req, req.cookies.refreshToken).then(next, next);
156154
}, passport.authenticate(WebAppStrategy.STRATEGY_NAME), storeRefreshTokenInCookie, function(req, res) {
157155
logger.debug("/protected");
158156
res.json(req.user);

0 commit comments

Comments
 (0)