Open ross-weir opened 2 years ago
Probably don't need an authenticated state, just redirect to wallets list if there's no available seed (the user has logged out of a wallet)
Added a hook that contains the authenticated wallet, can redirect back to list page if this is undefined
.
Currently when users logout of wallet they can navigate backwards and still access the wallet (can't send txs/generate transactions because seed is cleared).
isAuthenticated
field to app stateisAuthenticated
totrue
on successful loginisAuthenticated
tofalse
on logoutAuthenticatedRoute
component and redirect to wallet list page if user tries to navigate to wallet view page while unauthenticated