or3-provider-basic-auth 0.0.15 → 0.0.16

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/README.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  Basic-auth provider for OR3 Chat SSR mode.
4
4
 
5
+ Rejected registration requests preserve existing login cookies, including when
6
+ the request fails the mutation origin policy. Sign-out still clears the session.
7
+
5
8
  Requires **Node.js 24.22.1 or newer on the 24.x line**, matching OR3 Chat. Development and CI pin **24.22.1** in `.node-version`.
6
9
 
7
10
  This package registers:
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.15",
4
+ "version": "0.0.16",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -8,7 +8,7 @@ import {
8
8
  resolveRegistrationMode,
9
9
  validateInviteRegistration
10
10
  } from "~~/server/auth/registration";
11
- import { clearAuthCookies, setAccessCookie, setRefreshCookie } from "../../lib/cookies.js";
11
+ import { setAccessCookie, setRefreshCookie } from "../../lib/cookies.js";
12
12
  import { getBasicAuthConfig } from "../../lib/config.js";
13
13
  import {
14
14
  createInvalidRequestError,
@@ -150,11 +150,4 @@ export async function handleRegister(event) {
150
150
  }
151
151
  return { ok: true };
152
152
  }
153
- export default defineEventHandler(async (event) => {
154
- try {
155
- return await handleRegister(event);
156
- } catch (error) {
157
- clearAuthCookies(event);
158
- throw error;
159
- }
160
- });
153
+ export default defineEventHandler(handleRegister);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "or3-provider-basic-auth",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Saluana/or3-provider-basic-auth.git"