or3-provider-basic-auth 0.0.3 → 0.0.6

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,7 +1,7 @@
1
1
  {
2
2
  "name": "or3-provider-basic-auth",
3
3
  "configKey": "or3-provider-basic-auth",
4
- "version": "0.0.3",
4
+ "version": "0.0.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -46,6 +46,7 @@
46
46
 
47
47
  <script setup>
48
48
  import { computed, nextTick, onMounted, ref } from "vue";
49
+ import { useRuntimeConfig } from "#imports";
49
50
  import { BASIC_AUTH_PROVIDER_ID } from "../lib/constants";
50
51
  import { silentRefreshOnce } from "../lib/silent-refresh.client";
51
52
  import BasicAuthSignInModal from "./BasicAuthSignInModal.client.vue";
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("nuxt/app").Plugin<Record<string, unknown>> & import("nuxt/app").ObjectPlugin<Record<string, unknown>>;
2
2
  export default _default;
@@ -1,3 +1,4 @@
1
+ import { defineNuxtPlugin } from "#imports";
1
2
  import { registerClientAuthStatusResolver } from "~/composables/auth/useClientAuthStatus.client";
2
3
  import { registerClientSessionRecovery } from "~/composables/auth/useClientSessionRecovery";
3
4
  import { silentRefreshOnce } from "../lib/silent-refresh.client.js";
@@ -1,3 +1,4 @@
1
+ import { useRuntimeConfig } from "#imports";
1
2
  import { BASIC_AUTH_PROVIDER_ID } from "../../../lib/constants.js";
2
3
  import { validateBasicAuthConfig } from "../../lib/config.js";
3
4
  export const basicAuthAdminAdapter = {
@@ -1,3 +1,4 @@
1
+ import { useRuntimeConfig } from "#imports";
1
2
  import { createError, readBody, setResponseHeader } from "h3";
2
3
  import { validateBasicAuthConfig } from "../../lib/config.js";
3
4
  import { createAuthNotConfiguredError, createInvalidRequestError } from "../../lib/errors.js";
@@ -1,4 +1,5 @@
1
1
  import { randomUUID } from "node:crypto";
2
+ import { useRuntimeConfig } from "#imports";
2
3
  import { createError, defineEventHandler, setCookie } from "h3";
3
4
  import { z } from "zod";
4
5
  import { getAuthWorkspaceStore } from "~~/server/auth/store/registry";
@@ -1,3 +1,4 @@
1
+ import { useRuntimeConfig } from '#imports';
1
2
  export declare const BASIC_AUTH_INSECURE_DEV_ESCAPE_HATCH_ENV = "OR3_BASIC_AUTH_ALLOW_INSECURE_DEV";
2
3
  export interface BasicAuthConfig {
3
4
  providerId: string;
@@ -1,4 +1,5 @@
1
1
  import { resolve } from "node:path";
2
+ import { useRuntimeConfig } from "#imports";
2
3
  import {
3
4
  BASIC_AUTH_PROVIDER_ID,
4
5
  DEFAULT_ACCESS_TTL_SECONDS,
@@ -1,3 +1,4 @@
1
+ import { useRuntimeConfig } from "#imports";
1
2
  import { createError, setResponseHeader } from "h3";
2
3
  import {
3
4
  getClientIp as getProxyClientIp,
@@ -1,3 +1,4 @@
1
+ import { useRuntimeConfig } from "#imports";
1
2
  import { createError, getRequestHeader } from "h3";
2
3
  import { getProxyRequestHost, normalizeProxyTrustConfig } from "./request-identity.js";
3
4
  function getOriginHost(originOrReferer) {
@@ -1,4 +1,5 @@
1
1
  import { randomUUID, timingSafeEqual } from "node:crypto";
2
+ import { useRuntimeConfig } from "#imports";
2
3
  import { getRequestHeader } from "h3";
3
4
  import { getBasicAuthDb } from "../db/client.js";
4
5
  import { REFRESH_ROTATION_GRACE_MS } from "../../lib/constants.js";
@@ -1,2 +1,2 @@
1
- declare const _default: any;
1
+ declare const _default: import("nitropack").NitroAppPlugin;
2
2
  export default _default;
@@ -1,3 +1,5 @@
1
+ import { useRuntimeConfig } from "#imports";
2
+ import { defineNitroPlugin } from "nitropack/runtime/plugin";
1
3
  import { BASIC_AUTH_PROVIDER_ID } from "../../lib/constants.js";
2
4
  import { registerAuthProvider } from "~~/server/auth/registry";
3
5
  import { registerProviderAdminAdapter } from "~~/server/admin/providers/registry";
package/package.json CHANGED
@@ -1,9 +1,17 @@
1
1
  {
2
2
  "name": "or3-provider-basic-auth",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/Saluana/or3-provider-basic-auth.git"
7
+ },
4
8
  "description": "Basic-authentication provider for OR3 Chat with SSR session resolution, secure cookies, and provider-owned auth UI.",
5
9
  "license": "MIT",
6
10
  "type": "module",
11
+ "engines": {
12
+ "node": ">=24"
13
+ },
14
+ "packageManager": "bun@1.3.14",
7
15
  "sideEffects": false,
8
16
  "exports": {
9
17
  ".": {
@@ -52,7 +60,7 @@
52
60
  "@types/better-sqlite3": "^7.6.13",
53
61
  "@types/bun": "latest",
54
62
  "@types/jsonwebtoken": "^9.0.10",
55
- "@types/node": "^25.2.1",
63
+ "@types/node": "^24.10.1",
56
64
  "@typescript-eslint/eslint-plugin": "^8.54.0",
57
65
  "@typescript-eslint/parser": "^8.54.0",
58
66
  "@vitejs/plugin-vue": "^6.0.1",