Hi,
I am developing the login with blockstack integration for an app “Prism”. In this app I require user to signup using their email address, so I am looking for a way to get the user’s email address when logging in through Blockstack (in the same way it happens with Facebook and Google login).
However at the moment I haven’t seen any way to access the user’s email address.
In my current login scenario once the user is logged in and I access the user’s data I basically get a JSON object with several fields (all of them empty) but there is no mention about the user’s email address.
I see there is a “Scopes” parameter I can set in the redirectToSignIn function, when requesting the user to sign in, but I don’t see anywhere in the documentation what value I can set for scopes.
Here is a screen of my “login with blockstack” implementation:
So, in short: is there any way I can ask for user’s email address when he is logging through Blockstack? And if so, how can I get it into my app?
Thanks,
Stefano