Skip to content

Pre-filled values for inAppWallet auth options #7126

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

Open
gabrielstoica opened this issue May 22, 2025 · 2 comments
Open

Pre-filled values for inAppWallet auth options #7126

gabrielstoica opened this issue May 22, 2025 · 2 comments
Assignees
Labels
Good First Issue Good issue for anyone new to the codebase.

Comments

@gabrielstoica
Copy link

Hi!

I was wondering if there's any support to directly prefill or "force" a custom pre-defined value for an inAppWallet auth option in the ConnectEmbed component.

For example, when the component is configured as follows:

<ConnectEmbed
   client={client}
   wallets={[inAppWallet({ auth: { options: ["email"] } })]}
/>

a custom pre-defined [email protected] value could be passed:

<ConnectEmbed
   client={client}
   wallets={[inAppWallet({ auth: { options: ["email"], values: ["[email protected]"] } })]}
/>

This allows pre-filling the connect widget when an invite-based system is in place, where users are invited via email - therefore an exact value must be enforced at the signup time.

cc @joaquim-verges

Copy link

linear bot commented May 22, 2025

@joaquim-verges
Copy link
Member

api for this is interesting, only really applies to email/phone/wallet. might expand the auth options type to accept a string or an object, so you can attach additional info to the auth method.

something like:

<ConnectEmbed
   client={client}
   wallets={[inAppWallet({ auth: { options: [{ type: "email", defaultValue: "[email protected]" }] }})]}
/>

this is a good first task for anyone wanting to contribute btw!

@joaquim-verges joaquim-verges added the Good First Issue Good issue for anyone new to the codebase. label May 28, 2025
@joaquim-verges joaquim-verges self-assigned this May 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue Good issue for anyone new to the codebase.
Projects
None yet
Development

No branches or pull requests

2 participants