This is an example produced to show the basics on login into a Handcash Connect Session. Handcash Connect SDK is an API that gives you the funcionality to build on top of Bitcoin Satoshi Vision blockchain.
Visit https://docs.handcash.dev/ for a full insight.
This is an example that ask a handcash user for an authorization and query their profile. For a little improvement, the session remains in the browser thanks to the use of localStorage to store some data.
Follow this instructions on how to get an AppId and to setup a pair of callbacks to integrate the app with HC. Replace the AppId in the example with your own one. It is needed just profile access (not payment auth, nothing more).
In dev mode,
npm i
npm start