Properties
Below are the properties you can access. ๐ฅ
user
- Type:
StrapiUser
This object contains details about the authenticated user, which you can access using strapi.user.
Getter
strapi.useraxios
You have access to the axios instance through strapi.axios. This allows you to set new headers or extend it:
strapi.axios.defaults.headers.common["Authorization"] = `Bearer myToken`Note that we use axios interceptors in order to synchronize your JWT token in header.
Check out the Axios documentation for more information.