Hello,
I’m developing a plugin based on VueJS 3. I scratched from this project GitHub - joaomarcelofm/figma-plugin-template-vue: A lightweight template for Figma plugins using Vue.js .
I have this code at main.js
:
axios.interceptors.request.use((config) => {
const accessToken = localStorage.getItem('accessToken')
if (accessToken)
config.headers.commono'Authorization'] = `Token ${accessToken}`
return config
}, (error) => {
return Promise.reject(error)
});```
How can I save my accessToken? I can't use efigma.clientStorage](https://www.figma.com/plugin-docs/api/figma-clientStorage/) 'cause it is undefined at `main.js` I can't use `parent.localStorage` or `localStorage` 'cause it is prohibited
Best regards