Skip to content
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

Add Support for Retrieving User Email on Sign-In #262

Open
YASH-YADAV-dynamo opened this issue Feb 11, 2025 · 5 comments
Open

Add Support for Retrieving User Email on Sign-In #262

YASH-YADAV-dynamo opened this issue Feb 11, 2025 · 5 comments

Comments

@YASH-YADAV-dynamo
Copy link

Currently, there is no way to access the email ID of a user who signs in using their email. This limitation prevents proper user identification, communication, and account management.

Expected Behavior:
The system should capture and return the user's email upon successful authentication.

Actual Behavior:
The email is not accessible after sign-in, limiting its use for further actions.

Proposed Solution:
Modify the authentication flow to include email retrieval and expose it where necessary.

the file where I noticed this could be implemented through is Reference File

@emperorjm
Copy link

emperorjm commented Feb 11, 2025

Hi @YASH-YADAV-dynamo. An email address is not the only authenticator that a user can utilize and each account can have more than one authenticators as shown in the settings app https://settings.testnet.burnt.com which means you can authenticate to the same meta account using multiple different methods. If the user decides not to use email then your app would break.

So the identifier I believe you should focus on is the Meta Account address.

Could you explain further your use case?

@YASH-YADAV-dynamo
Copy link
Author

I want to use the email ID not for authorization but to store it and use it for various purposes, such as invites.

@emperorjm
Copy link

Got it, but email isn't the only authentication method available to users. If you need their email address, it's best to request it separately.

@YASH-YADAV-dynamo
Copy link
Author

"Yes, I'm already doing that. However, since the user signs in using their email, it would be more consistent and seamless if we could directly access their email ID."

Would love to know your views .

@emperorjm
Copy link

If your dapp is dependent on users email address and 60% of your users decide to authenticate with Passkey, 20% deciding to utilize Keplr or another wallet and only 20% deciding to use email address, then 80% of your users will not be able to access features dependent on email address. This is why I recommend if you dapp needs access to users email addresses then you should request this from the users.

There is a privacy component to this as well and we wouldn't want to have that as issue.

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

No branches or pull requests

2 participants