nuxt-auth-utils 0.0.7 → 0.0.8

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/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "auth-utils",
3
3
  "configKey": "auth",
4
- "version": "0.0.7"
4
+ "version": "0.0.8"
5
5
  }
@@ -11,7 +11,11 @@ export const useUserSession = () => {
11
11
  };
12
12
  };
13
13
  async function fetch() {
14
- useSessionState().value = await useRequestFetch()("/api/_auth/session").catch(() => ({}));
14
+ useSessionState().value = await useRequestFetch()("/api/_auth/session", {
15
+ headers: {
16
+ Accept: "text/json"
17
+ }
18
+ }).catch(() => ({}));
15
19
  }
16
20
  async function clear() {
17
21
  await $fetch("/api/_auth/session", { method: "DELETE" });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-auth-utils",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Minimalist Auth module for Nuxt with SSR",
5
5
  "repository": "Atinux/nuxt-auth-utils",
6
6
  "license": "MIT",
@@ -30,25 +30,25 @@
30
30
  "test:watch": "vitest watch"
31
31
  },
32
32
  "dependencies": {
33
- "@nuxt/kit": "^3.8.1",
33
+ "@nuxt/kit": "^3.8.2",
34
34
  "defu": "^6.1.3",
35
35
  "ofetch": "^1.3.3",
36
36
  "ohash": "^1.1.3"
37
37
  },
38
38
  "devDependencies": {
39
- "@iconify-json/simple-icons": "^1.1.78",
39
+ "@iconify-json/simple-icons": "^1.1.79",
40
40
  "@nuxt/devtools": "latest",
41
41
  "@nuxt/eslint-config": "^0.2.0",
42
42
  "@nuxt/module-builder": "^0.5.4",
43
- "@nuxt/schema": "^3.8.1",
43
+ "@nuxt/schema": "^3.8.2",
44
44
  "@nuxt/test-utils": "^3.8.1",
45
45
  "@nuxt/ui": "^2.10.0",
46
46
  "@nuxt/ui-pro": "^0.4.2",
47
- "@types/node": "^20.9.0",
47
+ "@types/node": "^20.9.3",
48
48
  "changelogen": "^0.5.5",
49
- "eslint": "^8.53.0",
50
- "nuxt": "^3.8.1",
51
- "typescript": "^5.2.2",
49
+ "eslint": "^8.54.0",
50
+ "nuxt": "^3.8.2",
51
+ "typescript": "^5.3.2",
52
52
  "vitest": "^0.34.6",
53
53
  "vue-tsc": "^1.8.22"
54
54
  }