Properties

Here are the properties you can access. 🖥

user

This object contains details about authenticated user. You can access it using strapi.

// get
strapi.user;
// set user data
strapi.user.avatar = "";

axios

You have access to the axios instance thanks strapi.axios. It allow you to set new headers or extend it:

strapi.axios.defaults.headers.common["Authorization"] = `Bearer myToken`;

See Axios documentation