-
Notifications
You must be signed in to change notification settings - Fork 80
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
feat: validate bridge_url #232
Conversation
bridge_url param will now behave properly with or without trailing slash
performs validation of bridge_url in idkit-core
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Could we allow http://localhost:port
? Maybe switch to a warning in this case
@m1guelpf as localhost bridge would only work when running IDKit, Bridge, and Simulator all locally, I've add a validation bypass when using a staging app_id and localhost bridge_url |
Co-authored-by: pdtfh <149602456+pdtfh@users.noreply.github.com>
ok to merge from my side |
Validates
bridge_url
inidkit-core
, fails verification and throws error if:Logs a non-blocking console warning if the
bridge_url
hostname does not end withworldcoin.org
ortoolsforhumanity.com
-- to be removed once the restriction is lifted in World App.Additionally,
idkit-core
now properly handles trailing slash. Abridge_url
input as...coin.org/
or...coin.org
will both function properly.