2.3.2

Properties

Below are the properties you can access. ๐Ÿ–ฅ

user

This object contains details about the authenticated user, which you can access using strapi.user.

Getter
strapi.user
Setter
strapi.user.avatar = ""

axios

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.

Table of Contents