Steps to test this authentication example:
- Click Login and enter an email.
- You'll be redirected to Home. Click on Profile, notice how your session is being used through a token stored in a cookie.
- Click Logout and try to go to Profile again. You'll get redirected to Login.
To learn more about Magic, visit their documentation.