So I was playing around with opensea today and noticed a login feature that uses crypto wallets. I am curious to understand how they achieved it in a native app.
The flow is something like this
- User clicks "Log in with metamask" button
- App directs users to metamask wallet on their phone (I assume with some deep linking)
- Metamask app displays view asking user to sign a message
- User signs a message and is then informed that they can return back to the opensea app
- Returning back to opensea app now has user authenticated
Really curious to understand how this works especially the last step i.e. how is opensea informed about correct signing?