-
Notifications
You must be signed in to change notification settings - Fork 364
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
Stronger typing for screen_hint property #912
Conversation
Thanks for the PR. I believe Looking at the source code of Auth0's server, I can see it for sure supports both That said, I can see that the Auth0 server does not put any limitation on what you can send as a Even tho I can see that might be weird, we might need to ensure we don't break people (previously, people sending @stevehobbsdev What do you think? I am always in favor of improving the experience for our users. But we need to ensure we don't break them. |
I can update the type to include |
Why don't we type it as |
I went ahead and made the change, but I think that test should be updated to accept the values your docs mention. Typing to |
I noticed that this property has type
string
which doesn't help guide me or others to the pit of success. Given this property can only be one value, I've taken the liberty of updating your types so Typescripts users can continue to have a great developer experience using Auth0.After merging this change, you should notice you get a helpful hint for what values are acceptable.