tkhq / sdk

Turnkey TypeScript SDK
Apache License 2.0
48 stars 13 forks source link

Wrap Iframe Client to prevent leaking stamper encapsulation #256

Closed AlwaysBCoding closed 4 months ago

AlwaysBCoding commented 4 months ago

In-tandem with demo-embedded-wallet PR: https://github.com/tkhq/demo-embedded-wallet/pull/8

This PR wraps the iframe client to have iframePublicKey and injectCredentialBundle available at the top-level to call. This prevents a developer implementing email auth from having to reach into the stamper to call these functions as can be seen in the demo-embedded-wallet PR