Closed huseyindeniz closed 8 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.
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.