-   Notifications  
You must be signed in to change notification settings  - Fork 559
 
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Currently, supabase.auth.linkIdentity() only supports linking OAuth providers (Google, GitHub, etc.) to an existing Supabase Auth user. However, there’s no supported way to link a Web3 wallet to a user account that was created with email/password or other auth methods.
It's currently possible to sign up with wallet and add email and oauth providers.
Suggested solution
Add support for something like:
await supabase.auth.linkWeb3Wallet({ chain: 'solana', statement: 'Link your Solana wallet to your account', wallet: wallet.adapter, })or extend the existing sign-in method to detect if a user session exists:
await supabase.auth.signInWithWeb3({ provider: 'solana', statement: 'Link your Solana wallet to your account', wallet: wallet.adapter, linkToCurrentUser: true, })Alternative
No response
Additional context
No response
Validations
- Follow our Code of Conduct
 - Read the Contributing Guidelines.
 - Read the docs.
 - Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
 
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request