huseyindeniz / vite-react-dapp-template

Vite React Template for dApp Frontend Development
https://huseyindeniz.github.io/react-dapp-template-documentation/
MIT License
9 stars 5 forks source link

Save access token in wallet store when backend signature activated. #39

Closed huseyindeniz closed 7 months ago

huseyindeniz commented 7 months ago

IWalletAccountApi sign method doesn't return anything. When backend login needed, in most cases, this sign method probably will get access token from backend server. This token needs to be saved in wallet store.

huseyindeniz commented 7 months ago

wallet feature should not know anything about the backend authentication logic. It should only save the string token which is signed in web3 wallet. All other business operations should be handled by caller/client features, user feature for example. If they need to listen wallet login flow, they can listen wallet actions.