blockstack-react-native
blockstack-react-native copied to clipboard
Blockstack Web Authentication
Hello, I was thinking if we possibly could make the user easier authentication from the webapp, on his mobile.
For example: if I am logged in already on the webapp, I can easily scan the QR Code, contains my identity, and automatically login with this identity on react-native app.
I was looking on iOS SDK, I saw that BlockstackSDK.signIn();
calls makeAuthRequest function, that takes the payload back from the browser and decode it and then calls Auth.handleAuthResponse(authResponse, transitPrivateKey)
.
Since the identity on Blockstack authentication holds the authResponse and transitPrivateKey, why not exporting Auth.handleAuthResponse(authResponse, transitPrivateKey)
and make the QR code holds the authResponse and transitPrivateKey, then we can join the app?
It's a suggestion, I know it would be really helpful for users to easy authenticate with their identity!