This guide discusses how to authenticate JSON requests with a JWT token.
To follow the steps in this tutorial, you must understand the concept of pages, users, and Permissions.
Authenticating a user with a JWT token is a three-step process:
You can do this after the user login; The system should usually store the token in the browser memory.
app/graphql/user_jwt_token.graphql
Every time you fetch the
The Authorization Policy fetches the JWT token from the request header and sets the current user using this token.
app/graphql/jwt_login
app/authorization_policies/api_set_current_user.liquid
app/views/pages/api/orders.json.liquid
curl
js fetch
Didn't quite find what you are looking for or have feedback on how we can make the content better then we would love to hear from you. Please provide us feedback and we will get back to you shortly.