wallet-selector: Allow Manual Trigger of `onWalletSignedIn()` From Within Module

Description Keypom Trial Accounts are underway and we’re developing a wallet selector module. The module will allow anyone with a specific link to be instantly signed into a dApp and immediately start signing transactions with zero barrier to entry.

A demo of this flow can be seen below: https://user-images.githubusercontent.com/57506486/219454636-d69d6f14-1347-4160-81fd-e58681919192.mov

Currently, I’m manually hacking local storage in order to complete this (as seen in this function).

If the wallet selector were to update the way that wallets are “selected”, it could potentially break things in our plugin.

It would be awesome if the onWalletSignedIn function found here could be exported and usable from within the Keypom module.

For some more context, the auto-sign in flow is called when the Keypom module is setup and when our signIn function is automatically invoked (if the URL is correct) - here and the actual auto signing in happens here.

Instead of us manually hard-coding the sign in logic, I would like to use the one that the wallet selector uses such that if updates were to happen, we wouldn’t have the rug pulled from beneath us.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15

Most upvoted comments

@amirsaran3 hey I see you closed the PR

Hey @BenKurrek, You can check out this PR: #727.

We are making some changes. Once we merge this PR you will need to update your example with the new InstantLinkWallet type. and some other config stuff for your auto-signin feature to work.

If you have any questions feel free to ask them.

Awesomeee thanks so much y’all - let me know if I can help with testing the feature out. I’d be happy to hop on a call as well if it’s easier for you.

Hi @AmmarHumackicSQA please schedule something on my calendly:

https://calendly.com/ben-kurrek