Skip to content

Commit 05e49f7

Browse files
authored
Merge pull request oauthinaction#12 from pardeep-singh/fix/fixes-chapter-6-exercises
Fix/fixes chapter 6 exercises
2 parents 23d2e58 + 386616f commit 05e49f7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

exercises/ch-6-ex-2/client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var access_token = null;
4141
var scope = null;
4242

4343
app.get('/', function (req, res) {
44-
res.render('index', {access_token: access_token, refresh_token: refresh_token, scope: scope});
44+
res.render('index', {access_token: access_token, scope: scope});
4545
});
4646

4747
app.get('/authorize', function(req, res){

exercises/ch-6-ex-3/completed/client.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ app.post('/username_password', function(req, res) {
8282

8383
scope = body.scope;
8484

85+
refresh_token = body.refresh_token;
86+
8587
res.render('index', {access_token: access_token, refresh_token: refresh_token, scope: scope});
8688
} else {
8789
res.render('error', {error: 'Unable to fetch access token, server response: ' + tokRes.statusCode})

0 commit comments

Comments
 (0)