Skip to content
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

Feature Request: Implement IDKit.close() API for close modal on standalone #257

Closed
wenweih opened this issue Jul 6, 2024 · 3 comments
Closed

Comments

@wenweih
Copy link

wenweih commented Jul 6, 2024

May I know do it any plan to add close modal API, something like that: IDKit.close()

I am currently utilizing IDKit in my project and have encountered situations where I need to programmatically close the modal generated by IDKit.

This functionality is particularly necessary in the context of handling verification callbacks, where an automatic or manual dismissal of the modal may be required based on the verification outcome or other logic within the handleVerify callback function.

Thanks.

@wenweih wenweih changed the title Feature Request: Implement IDKit.close() API for close modal manual Feature Request: Implement IDKit.close() API for close modal Jul 6, 2024
@wenweih wenweih changed the title Feature Request: Implement IDKit.close() API for close modal Feature Request: Implement IDKit.close() API for close modal for standalone Jul 6, 2024
@wenweih wenweih changed the title Feature Request: Implement IDKit.close() API for close modal for standalone Feature Request: Implement IDKit.close() API for close modal on standalone Jul 6, 2024
@andy-t-wang
Copy link
Contributor

Hi we can look into this

@andy-t-wang
Copy link
Contributor

Are you using react or standalone

@andy-t-wang
Copy link
Contributor

If you're using react we do have hooks you can use to close the modal

https://docs.worldcoin.org/reference/idkit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants