fix auth
Some checks failed
Build and Publish / build-release (push) Failing after 1m31s

This commit is contained in:
2026-05-14 12:12:03 -05:00
parent f19a727ef0
commit 3a52768b97
17 changed files with 601 additions and 41 deletions

View File

@@ -1,23 +1,27 @@
const devApiOrigin = 'https://dev.api.corredorconect.com'
export default defineNuxtConfig({
compatibilityDate: '2026-02-25',
/** Dev server URL — open the same port in the browser (see terminal if the port was busy). */
modules: ['nuxt-open-fetch', '@nuxt/ui', '@nuxt/eslint'],
modules: ['nuxt-open-fetch', '@nuxt/ui', '@nuxt/eslint', '@zitadel/nuxt-auth'],
auth: {
baseURL: '/api/auth',
provider: {
type: 'authjs',
trustHost: true,
defaultProvider: 'zitadel',
},
sessionRefresh: {
enablePeriodically: false,
enableOnWindowFocus: false,
},
},
css: ['~/assets/css/main.css'],
ui: {
colorMode: false
},
runtimeConfig: {
public: {
/**
* Sent as `Authorization: Bearer …` on Policy API requests (required for protected routes per OpenAPI).
* Set in `.env` as `NUXT_PUBLIC_POLICY_API_TOKEN`.
*/
policyApiToken: process.env.NUXT_PUBLIC_POLICY_API_TOKEN ?? ''
}
},
openFetch: {
runtimeConfig: {},
openFetch: {
clients: {
customer: {
baseURL: