0👍
You can put your token into env variable https://nuxtjs.org/api/configuration-env/ e.g.
Example (nuxt.config.js):
export default {
env: {
myToken: process.env.MYTOKEN || 'http://localhost:3000'
}
}
And then in plugin just use process.env.myToken
Source:stackexchange.com