I have followed instructions from here in my RW app
I then have tried the following
const {logIn, logOut, isAuthenticated, currentUser} = useAuth()
...
<button onClick={isAuthenticated ? logOut : logIn}>
{isAuthenticated ? 'Log Out' : 'Log In'}
</button>
I know magic link is signup Sign in in one click, I tried passing an email to logIn({email:email@email.com}); that sent the email when the page loaded but not on click of the button so something must be wrong about that implementation.
And once I received the email I was able to access my locked down routes, however the isAuthenticated boolean did not switch and show LogOut as the option it was still on login.
Any help for implementation would be great
Thanks ahead of time