nuxt-bearer-auth 0.1.3 → 0.1.4

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
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.12.0 || ^4.0.0"
6
6
  },
7
- "version": "0.1.3",
7
+ "version": "0.1.4",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -1,5 +1,5 @@
1
1
  import { createError, defineEventHandler, getRequestURL } from "h3";
2
- import { useRuntimeConfig } from "nitropack/runtime/config";
2
+ import { useRuntimeConfig } from "#imports";
3
3
  import { getBearerAuthSession } from "../utils/sessions.js";
4
4
  const SAFE_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS"]);
5
5
  export default defineEventHandler(async (event) => {
@@ -1,5 +1,5 @@
1
1
  import { createError } from "h3";
2
- import { useRuntimeConfig } from "nitropack/runtime/config";
2
+ import { useRuntimeConfig } from "#imports";
3
3
  export function getBearerAuthConfig() {
4
4
  const config = useRuntimeConfig();
5
5
  return config.bearerAuth;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-bearer-auth",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Reusable Nuxt authentication module for bearer-token APIs with Redis sessions and CSRF protection.",
5
5
  "type": "module",
6
6
  "license": "MIT",