Protected Routes
To protect routes, keep the routes inside if statement as below
Access Protected Route with Token
HEAD
-/protected-route
Headers
Name
Type
Description
Authorization
string
Bearer Token
You must have token to access protected routes.
Last updated
Was this helpful?