Skip to content

Commit 43a8fef

Browse files
committed
implicit grant, add access_token and token_type to redirect
1 parent bc5a077 commit 43a8fef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/authCodeGrant.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,10 @@ function redirect (done) {
255255
if(this.responseType === 'code') {
256256
url = this.client.redirectUri + '?code=' + this.authCode;
257257
} else {
258-
url = this.client.redirectUri + '#token=' + this.accessToken;
258+
url = this.client.redirectUri +
259+
'#token=' + this.accessToken +
260+
'&access_token=' + this.accessToken +
261+
'&token_type=bearer';
259262
}
260263

261264
if(typeof this.req.body.state !== 'undefined') {

0 commit comments

Comments
 (0)