You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`AUTH_NO_ORIGIN` will appear as a warning message during development and be thrown as an error that stops the application during production.
23
23
It is safe to ignore the development warning - it is only meant as a heads-up for your later production-deployment.
24
24
25
-
`AUTH_NO_ORIGIN` occurs when the origin of your application was not set.
26
-
NuxtAuth attempts to find the origin of your application in the following order ([source](https://github.com/sidebase/nuxt-auth/blob/9852116a7d3f3be56f6fdc1cba8bdff747c4cbb8/src/runtime/server/services/utils.ts#L8-L34)):
25
+
`AUTH_NO_ORIGIN` occurs when the authentication base URL of your application was not set.
27
26
28
-
### 1. Environment variable and `runtimeConfig`
27
+
For a detailed guide on pathing logic, refer to its [dedicated page](../guide/advanced/url-resolutions.md).
29
28
30
-
Use the `AUTH_ORIGIN` environment variable or `runtimeConfig.authOrigin` if set. Name can be customized, refer to [`originEnvKey`](/guide/application-side/configuration#originenvkey).
29
+
The simplest way to fix this error is by providing `auth.baseUrl` in your `nuxt.config.ts`:
31
30
32
-
### 2. `baseURL`
33
-
34
-
The `origin` is computed using `ufo` from the provided `baseURL`. See implementation [here](https://github.com/sidebase/nuxt-auth/blob/9852116a7d3f3be56f6fdc1cba8bdff747c4cbb8/src/runtime/helpers.ts#L9-L23).
0 commit comments