Authentication
By default Nuxtus creates a Directus admin user and uses these credentials to authenticate with Directus.
These details are stored in /client/.env
as:
NUXT_PUBLIC_NUXTUS_DIRECTUS_EMAIL=admin@example.com
NUXT_PUBLIC_NUXTUS_DIRECTUS_PASSWORD=password
You may want to use a static token instead. Fortunately Nuxtus makes this easy with the Nuxtus CLI. Make sure your Nuxtus instance is running and then, from your /client
folder run:
bash
nuxtus token
This will generate a static token in Directus and replace your email/password credentials in the .env file with the token:
NUXT_PUBLIC_NUXTUS_DIRECTUS_TOKEN=<RANDOM_TOKEN>