Skip to content

Commit 0f0323e

Browse files
smalinincblakeley
authored andcommitted
Fix code for Login redirect
1 parent 9539556 commit 0f0323e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/requests/login-request.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ class LoginRequest extends AuthRequest {
158158
*/
159159
postLoginUrl (validUser) {
160160
// Login request is part of an app's auth flow
161-
if (/token/.test(this.authQueryParams['response_type'])) {
161+
//?? if (/token/.test(this.authQueryParams['response_type'])) {
162+
if (/token|code/.test(this.authQueryParams['response_type'])) {
162163
return this.authorizeUrl()
163164
// Login request is a user going to /login in browser
164165
} else if (validUser) {

0 commit comments

Comments
 (0)