Skip to content

Conversation

@7i7o
Copy link
Contributor

@7i7o 7i7o commented May 28, 2025

Adds a strategy for Wander Connect

Users can pass the options parameter for Wander Connect's SDK constructor on the WanderConnectStrategy constructor, when creating the instances for each strategy

To simplify the integration, it hides the Wander BE button within Wander Connect because users can add that in AWK as a separate strategy. It also doesn't show the WC button nor the iframe with the wallet dashboard because AWK abstracts the usage of the wallet to avoid dealing with different UIs

It is also included in the AWK React Legacy package by default

@7i7o 7i7o requested a review from kranthicodes May 28, 2025 19:16
// Handle authentication result
if (authInfo.authStatus === "authenticated") {
this._isAuthenticated = true;
this._arweaveWallet = window.arweaveWallet;
Copy link

@Danziger Danziger May 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to do this by listening to window.addEventListener("arweaveWalletLoaded", handleWalletLoaded);. Also, this is the event you should be listening to before calling connect()

if (authInfo.authStatus === "authenticated") {
this._isAuthenticated = true;
this._arweaveWallet = window.arweaveWallet;
this._wanderConnect.close();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably move this option to the Connect SDK (closeAfterAuth).

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

Successfully merging this pull request may close these issues.

3 participants