-
Notifications
You must be signed in to change notification settings - Fork 988
[With interface workaround] Auth Web OTP Retrieval #7496
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
Conversation
|
Size Report 1Affected Products
Test Logs |
Size Analysis Report 1Affected Products
Test Logs |
prameshj
left a comment
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.
Thanks for working on this!
| phoneOptions: PhoneInfoOptions | string, | ||
| applicationVerifier: ApplicationVerifier, | ||
| webOTPTimeout?: number | ||
| ): Promise<unknown> { |
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.
nit: can we explore if "Promise<UserCredential| string>" will work?
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.
Yes. This would also work :) I like that it is more specific than using "unknown" - even though this will not be public for developers to see. I have replaced "unknown" in the return types. Please feel free to comment if you believe "unknown" is preferred.
| use(chaiAsPromised); | ||
| use(sinonChai); | ||
|
|
||
| //interfaces added to provide typescript support for webopt autofill |
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.
Is this needed in the test fil?
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.
Yes, I believe this is needed for us to use OTPCredential in the unit tests. It can be removed once typescript support is added for the WebOTP API.
renkelvin
left a comment
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.
Great, thanks!
This branch contained all the changes related to webOTP Autofill.
Includes changes in