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.
To generate a token, see under Authentication section.
Last updated