-
Notifications
You must be signed in to change notification settings - Fork 556
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed login_hint in some enterprise authorize call scenarios #1460
Conversation
src/core/web_api/p2_api.js
Outdated
@@ -58,14 +58,29 @@ class Auth0APIClient { | |||
} | |||
|
|||
logIn(options, authParams, cb) { | |||
debugger; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this 😬
}); | ||
|
||
if (options.login_hint) { | ||
loginOptions.login_hint = options.login_hint; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a test for this. file: https://github.com/auth0/lock/blob/master/src/__tests__/core/web_api/p2_api.test.js#L105
f6d9e8f
to
8da77e5
Compare
Formatting changes are from the lint that runs as part of the commit process. |
@@ -1,4 +1,5 @@ | |||
import { setURL } from 'testUtils'; | |||
import { equal } from 'assert'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this
Ensure the supplied login_hint is used over any default auth/params
Fixes: #1426