@atlasauth/nuxt 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlasauth/nuxt changelog
2
2
 
3
+ ## 0.2.2 — 2026-11-12
4
+
5
+ - Picks up `@atlasauth/design` 0.4.0 (zod 4, fixes a zod 3 memory-exhaustion advisory). No API change.
6
+
7
+ ## 0.2.1 — 2026-11-06
8
+
9
+ ### Added
10
+ - `previousIssuers` module option (server-only runtime config), so a sign-in host change does not sign users out: tokens from a listed former issuer are accepted. Absent means only `issuer` is accepted.
11
+
3
12
  ## 0.2.0 — 2026-10-24
4
13
  Requires `@atlasauth/vue` with policy acceptance.
5
14
  - **Policy acceptance** (terms of service, privacy, any policy the app defines). `usePolicies` and `usePolicyState` are
package/README.md CHANGED
@@ -41,6 +41,7 @@ export default defineNuxtConfig({
41
41
  atlas: {
42
42
  jwksUrl: '', // NUXT_ATLAS_JWKS_URL
43
43
  issuer: '', // NUXT_ATLAS_ISSUER
44
+ // previousIssuers: ['https://old-host.example.com'], // optional: still accept a former issuer
44
45
  // authorizedParties: ['https://app.example.com'], // optional azp allowlist
45
46
  },
46
47
  public: {
package/dist/module.d.mts CHANGED
@@ -40,6 +40,11 @@ interface ModuleOptions {
40
40
  * an unchecked issuer would accept a token from any Atlas instance.
41
41
  */
42
42
  issuer?: string;
43
+ /**
44
+ * Former issuers still accepted during a sign-in host change. SERVER-ONLY.
45
+ * Absent means only `issuer` is accepted.
46
+ */
47
+ previousIssuers?: string[];
43
48
  /**
44
49
  * Optional `azp` allowlist. When set, a token minted for another origin is
45
50
  * refused server-side (§7.3). SERVER-ONLY.
package/dist/module.d.ts CHANGED
@@ -40,6 +40,11 @@ interface ModuleOptions {
40
40
  * an unchecked issuer would accept a token from any Atlas instance.
41
41
  */
42
42
  issuer?: string;
43
+ /**
44
+ * Former issuers still accepted during a sign-in host change. SERVER-ONLY.
45
+ * Absent means only `issuer` is accepted.
46
+ */
47
+ previousIssuers?: string[];
43
48
  /**
44
49
  * Optional `azp` allowlist. When set, a token minted for another origin is
45
50
  * refused server-side (§7.3). SERVER-ONLY.
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.0.0"
6
6
  },
7
- "version": "0.2.0",
7
+ "version": "0.2.2",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "unknown"
package/dist/module.mjs CHANGED
@@ -47,6 +47,7 @@ const module = defineNuxtModule({
47
47
  frontendApi: "",
48
48
  jwksUrl: "",
49
49
  issuer: "",
50
+ previousIssuers: [],
50
51
  authorizedParties: []
51
52
  },
52
53
  setup(options, nuxt) {
@@ -60,6 +61,7 @@ const module = defineNuxtModule({
60
61
  nuxt.options.runtimeConfig.atlas = {
61
62
  jwksUrl: options.jwksUrl || privateConfig.jwksUrl || "",
62
63
  issuer: options.issuer || privateConfig.issuer || "",
64
+ previousIssuers: options.previousIssuers?.length ? options.previousIssuers : privateConfig.previousIssuers || [],
63
65
  authorizedParties: options.authorizedParties?.length ? options.authorizedParties : privateConfig.authorizedParties || []
64
66
  };
65
67
  nuxt.options.build.transpile.push("@atlasauth/vue", "@atlasauth/js", "@atlasauth/authz", resolver.resolve("./runtime"));
@@ -34,6 +34,7 @@ declare module '#imports' {
34
34
  atlas: {
35
35
  jwksUrl: string;
36
36
  issuer: string;
37
+ previousIssuers?: string[];
37
38
  authorizedParties: string[];
38
39
  };
39
40
  };
@@ -12,6 +12,7 @@ export function atlasBackend() {
12
12
  cached = new AtlasBackend({
13
13
  jwksUrl: atlas.jwksUrl,
14
14
  issuer: atlas.issuer,
15
+ previousIssuers: atlas.previousIssuers?.length ? atlas.previousIssuers : void 0,
15
16
  authorizedParties: atlas.authorizedParties?.length ? atlas.authorizedParties : void 0
16
17
  });
17
18
  return cached;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlasauth/nuxt",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "description": "Official Nuxt 3 module for Atlas — SSR session verification (Nitro) built on the @atlasauth/vue client.",
6
6
  "license": "MIT",
@@ -24,10 +24,10 @@
24
24
  ],
25
25
  "dependencies": {
26
26
  "@nuxt/kit": "^3.13.0",
27
- "@atlasauth/backend": "0.18.0",
28
- "@atlasauth/vue": "0.10.0",
29
- "@atlasauth/authz": "0.2.0",
30
- "@atlasauth/js": "0.19.0"
27
+ "@atlasauth/vue": "0.22.1",
28
+ "@atlasauth/backend": "0.45.0",
29
+ "@atlasauth/js": "0.38.0",
30
+ "@atlasauth/authz": "0.3.0"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "nuxt": "^3"
@@ -39,7 +39,7 @@
39
39
  "jose": "^5.9.6",
40
40
  "nuxt": "^3.13.0",
41
41
  "typescript": "^5.6.3",
42
- "vitest": "^2.1.4",
42
+ "vitest": "^3.2.7",
43
43
  "vue": "^3.4.0"
44
44
  },
45
45
  "publishConfig": {
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "scripts": {
49
49
  "build": "nuxt-module-build build",
50
- "typecheck": "tsc -p tsconfig.json --noEmit",
50
+ "typecheck": "tsgo -p tsconfig.json --noEmit --incremental --tsBuildInfoFile node_modules/.cache/typecheck.tsbuildinfo",
51
51
  "test": "vitest run"
52
52
  }
53
53
  }