Using User JWT
How to Verify JWT
Learn how to verify user tokens.
In various cases, you might need to verify users in your service, such as when you want to restrict API calls to users of your service only on your service’s backend API server. How can the backend API server determine whether the caller of an API is a user of your service or not?
Verification Process
- Users visiting your service’s web page attempt to log in.
- The login request is sent to Furo, which verifies the user’s information. If everything is correct and there are no issues, Furo responds with a JWT, signed with your project’s Client Secret, for the authenticated user.
You can find the Client Secret for the project you created in the [Project Info] tab on the Furo Console.
- Your web page sends the received JWT in the request to the backend API server. (Usually, JWT is included in the Authorization header.)
- The backend API server verifies whether the JWT was signed with your project’s Client Secret and, if everything checks out, it processes the client’s request and responds.
Sample code
Was this page helpful?