File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ An ``Object`` representing the access token and associated data.
214
214
215
215
function getAccessToken(accessToken) {
216
216
// imaginary DB queries
217
- db.queryAccessToken({access_token: accessToken})
217
+ return db.queryAccessToken({access_token: accessToken})
218
218
.then(function(token) {
219
219
return Promise.all([
220
220
token,
@@ -288,7 +288,7 @@ An ``Object`` representing the refresh token and associated data.
288
288
289
289
function getRefreshToken(refreshToken) {
290
290
// imaginary DB queries
291
- db.queryRefreshToken({refresh_token: refreshToken})
291
+ return db.queryRefreshToken({refresh_token: refreshToken})
292
292
.then(function(token) {
293
293
return Promise.all([
294
294
token,
@@ -364,7 +364,7 @@ An ``Object`` representing the authorization code and associated data.
364
364
365
365
function getAuthorizationCode(authorizationCode) {
366
366
// imaginary DB queries
367
- db.queryAuthorizationCode({authorization_code: authorizationCode})
367
+ return db.queryAuthorizationCode({authorization_code: authorizationCode})
368
368
.then(function(code) {
369
369
return Promise.all([
370
370
code,
@@ -446,7 +446,7 @@ The return value (``client``) can carry additional properties that will be ignor
446
446
if (clientSecret) {
447
447
params.client_secret = clientSecret;
448
448
}
449
- db.queryClient(params)
449
+ return db.queryClient(params)
450
450
.then(function(client) {
451
451
return {
452
452
id: client.id,
@@ -984,4 +984,3 @@ Returns ``true`` if the access token passes, ``false`` otherwise.
984
984
let authorizedScopes = token.scope.split(' ');
985
985
return requestedScopes.every(s => authorizedScopes.indexOf(s) >= 0);
986
986
}
987
-
You can’t perform that action at this time.
0 commit comments