Also I have seen this code snippet in several of the examples, I'm wondering is there a "ProtectedRoute" type component so that I don't need to use the same boilerplate nested JSX elements for each path?
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).