or3-provider-basic-auth 0.0.2 → 0.0.5
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 +1 -1
- package/dist/runtime/plugins/auth-status.client.d.ts +1 -1
- package/dist/runtime/plugins/auth-status.client.js +1 -0
- package/dist/runtime/server/admin/adapters/auth-basic-auth.js +1 -0
- package/dist/runtime/server/api/basic-auth/_helpers.js +1 -0
- package/dist/runtime/server/api/basic-auth/register.post.js +1 -0
- package/dist/runtime/server/lib/config.d.ts +1 -0
- package/dist/runtime/server/lib/config.js +1 -0
- package/dist/runtime/server/lib/rate-limit.js +1 -0
- package/dist/runtime/server/lib/request-security.js +1 -0
- package/dist/runtime/server/lib/session-store.js +1 -0
- package/dist/runtime/server/plugins/register.d.ts +1 -1
- package/dist/runtime/server/plugins/register.js +3 -1
- package/package.json +10 -2
package/dist/module.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
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,2 +1,2 @@
|
|
|
1
|
-
declare const _default:
|
|
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";
|
|
@@ -52,7 +54,6 @@ export default defineNitroPlugin(async () => {
|
|
|
52
54
|
}
|
|
53
55
|
throw new Error(message);
|
|
54
56
|
}
|
|
55
|
-
await ensureBootstrapUserIfConfigured();
|
|
56
57
|
registerAuthProvider({
|
|
57
58
|
id: BASIC_AUTH_PROVIDER_ID,
|
|
58
59
|
order: 100,
|
|
@@ -60,4 +61,5 @@ export default defineNitroPlugin(async () => {
|
|
|
60
61
|
});
|
|
61
62
|
registerProviderTokenBroker(BASIC_AUTH_PROVIDER_ID, createBasicAuthTokenBroker);
|
|
62
63
|
registerProviderAdminAdapter(basicAuthAdminAdapter);
|
|
64
|
+
await ensureBootstrapUserIfConfigured();
|
|
63
65
|
});
|
package/package.json
CHANGED
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "or3-provider-basic-auth",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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": "^
|
|
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",
|