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
Copy file name to clipboardExpand all lines: docs/upgrade/version-0.10.0.md
+74-14Lines changed: 74 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,21 +43,81 @@ definePageMeta({
43
43
44
44
### Adjustments to the computation of `baseURL` and `AUTH_ORIGIN`
45
45
46
-
In 0.10.0 we spent a considerable amount of time reworking how @sidebase/nuxt-auth determine which endpoints to make requests to. If you would like to view the full PR and discussion, you can find it [here](https://github.com/sidebase/nuxt-auth/pull/913).
46
+
In 0.10.0 we spent a considerable amount of time reworking how `@sidebase/nuxt-auth` determine which endpoints to make requests to. If you would like to view the full PR and discussion, you can find it [here](https://github.com/sidebase/nuxt-auth/pull/913).
47
47
48
-
As a quick overview, @sidebase/nuxt-auth will now use the following logic to determine where to make requests to:
49
-
-
48
+
As a quick overview, `@sidebase/nuxt-auth` will now use the following logic to determine where to make requests to:
49
+
50
+
#### 1. Environment variable and `runtimeConfig`
51
+
52
+
Use the `AUTH_ORIGIN` environment variable or `runtimeConfig.authOrigin` if set. Name can be customized, refer to [`originEnvKey`](/guide/application-side/configuration#originenvkey).
53
+
54
+
#### 2. `baseURL`
55
+
56
+
Use the static [`baseURL`](/guide/application-side/configuration#baseurl) inside the `nuxt.config.ts` if set.
57
+
58
+
#### 3. Automatically from the incoming `HTTP` request
59
+
60
+
When the server is running in **development mode**, NuxtAuth can automatically infer it from the incoming request.
61
+
62
+
---
63
+
64
+
Therefore as of version 0.10.0, we recommend the following setup to set your `AUTH_ORIGIN` or `baseURL`:
### Adjustments when using an external backend for the `local`-provider
88
+
89
+
In previous versions of `@sidebase/nuxt-auth` a very specific setup was needed to ensure that external backends could properly be used for the `local`-provider. In 0.10.0 we reworked the internal handling or urls to make it more consistent across providers and configurations.
90
+
91
+
If you were previously using an external backend you can now make the following adjustments:
*docs(fix): use correct process env variable for baseUrl by @felixranesberger in https://github.com/sidebase/nuxt-auth/pull/940
114
+
*enh(#895): Custom refresh response token pointer by @Rizzato95 in https://github.com/sidebase/nuxt-auth/pull/910
115
+
*feat(#797, #878): set `baseURL` via environment variables and improve internal url detection by @zoey-kaiser in https://github.com/sidebase/nuxt-auth/pull/913
116
+
*chore(#892): rename middleware to avoid conflicts by @zoey-kaiser in https://github.com/sidebase/nuxt-auth/pull/957
117
+
*enh(#935): allow external login page by @Thomas-Philippot in https://github.com/sidebase/nuxt-auth/pull/936
118
+
*release: 0.10.0-rc.1 by @zoey-kaiser in https://github.com/sidebase/nuxt-auth/pull/958
119
+
*chore: upgrade to nitro 2.10, preparing for nitropack ecosystem switch from `nitropack` to `nitro`by @BracketJohn in https://github.com/sidebase/nuxt-auth/pull/942
120
+
*fix(#927): fix the warnings produced by Nuxt when awaiting runtime config by @phoenix-ru in https://github.com/sidebase/nuxt-auth/pull/959
121
+
*release: 0.10.0-rc.2 by @zoey-kaiser in https://github.com/sidebase/nuxt-auth/pull/960
0 commit comments