@lunora/auth 1.0.0-alpha.70 → 1.0.0-alpha.71

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.
@@ -24,7 +24,7 @@ interface MiddlewareNext<ContextIn> {
24
24
  * authorization bypass, so a call that trips the lint also trips this guard.
25
25
  */
26
26
  declare class LunoraAuthHeadersError extends LunoraError {
27
- /** The `ctx.authApi.&lt;method>` that was called without `headers`. */
27
+ /** The `ctx.authApi.<method>` that was called without `headers`. */
28
28
  readonly method: string;
29
29
  constructor(method: string);
30
30
  }
@@ -36,7 +36,7 @@ interface WithAuthPluginsOptions {
36
36
  * Whether to install the runtime header guard around `ctx.authApi`.
37
37
  *
38
38
  * **Defaults to `true` — the safe default.** When enabled, every
39
- * `ctx.authApi.&lt;method>(…)` call that omits `headers` throws
39
+ * `ctx.authApi.<method>(…)` call that omits `headers` throws
40
40
  * {@link LunoraAuthHeadersError} instead of silently running with full
41
41
  * server-to-server privileges. For a deliberate, per-call unauthenticated
42
42
  * invocation, use the explicit `ctx.authApi.withoutHeaders()` escape hatch
@@ -89,7 +89,7 @@ interface LunoraAuthApiContext<Auth extends LunoraAuth> {
89
89
  * statically; the guard is the runtime backstop for the cases the lint
90
90
  * can't see (dynamic method names, indirected calls). For the rare,
91
91
  * deliberate unauthenticated server-to-server call, opt out explicitly with
92
- * `ctx.authApi.withoutHeaders().&lt;method>(…)`.
92
+ * `ctx.authApi.withoutHeaders().<method>(…)`.
93
93
  *
94
94
  * Lunora's procedure context carries only the resolved identity, not the
95
95
  * raw inbound `Headers`, so this middleware CANNOT pre-bind them for you.
@@ -179,7 +179,7 @@ interface LunoraAuthApiContext<Auth extends LunoraAuth> {
179
179
  * Shape of the middleware {@link withAuthPlugins} returns: a callable generic
180
180
  * over the incoming ctx so chaining `.use(...)` preserves whatever ctx fields
181
181
  * the upstream middleware already installed. Lives as its own interface
182
- * because TypeScript doesn't allow declaring `const fn: &lt;CtxIn>() => ...` —
182
+ * because TypeScript doesn't allow declaring `const fn: <CtxIn>() => ...` —
183
183
  * the generic must live on a callable type alias or interface.
184
184
  */
185
185
  type WithAuthPluginsMiddleware<Auth extends LunoraAuth> = <ContextIn>(options: {
@@ -24,7 +24,7 @@ interface MiddlewareNext<ContextIn> {
24
24
  * authorization bypass, so a call that trips the lint also trips this guard.
25
25
  */
26
26
  declare class LunoraAuthHeadersError extends LunoraError {
27
- /** The `ctx.authApi.&lt;method>` that was called without `headers`. */
27
+ /** The `ctx.authApi.<method>` that was called without `headers`. */
28
28
  readonly method: string;
29
29
  constructor(method: string);
30
30
  }
@@ -36,7 +36,7 @@ interface WithAuthPluginsOptions {
36
36
  * Whether to install the runtime header guard around `ctx.authApi`.
37
37
  *
38
38
  * **Defaults to `true` — the safe default.** When enabled, every
39
- * `ctx.authApi.&lt;method>(…)` call that omits `headers` throws
39
+ * `ctx.authApi.<method>(…)` call that omits `headers` throws
40
40
  * {@link LunoraAuthHeadersError} instead of silently running with full
41
41
  * server-to-server privileges. For a deliberate, per-call unauthenticated
42
42
  * invocation, use the explicit `ctx.authApi.withoutHeaders()` escape hatch
@@ -89,7 +89,7 @@ interface LunoraAuthApiContext<Auth extends LunoraAuth> {
89
89
  * statically; the guard is the runtime backstop for the cases the lint
90
90
  * can't see (dynamic method names, indirected calls). For the rare,
91
91
  * deliberate unauthenticated server-to-server call, opt out explicitly with
92
- * `ctx.authApi.withoutHeaders().&lt;method>(…)`.
92
+ * `ctx.authApi.withoutHeaders().<method>(…)`.
93
93
  *
94
94
  * Lunora's procedure context carries only the resolved identity, not the
95
95
  * raw inbound `Headers`, so this middleware CANNOT pre-bind them for you.
@@ -179,7 +179,7 @@ interface LunoraAuthApiContext<Auth extends LunoraAuth> {
179
179
  * Shape of the middleware {@link withAuthPlugins} returns: a callable generic
180
180
  * over the incoming ctx so chaining `.use(...)` preserves whatever ctx fields
181
181
  * the upstream middleware already installed. Lives as its own interface
182
- * because TypeScript doesn't allow declaring `const fn: &lt;CtxIn>() => ...` —
182
+ * because TypeScript doesn't allow declaring `const fn: <CtxIn>() => ...` —
183
183
  * the generic must live on a callable type alias or interface.
184
184
  */
185
185
  type WithAuthPluginsMiddleware<Auth extends LunoraAuth> = <ContextIn>(options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/auth",
3
- "version": "1.0.0-alpha.70",
3
+ "version": "1.0.0-alpha.71",
4
4
  "description": "Auth for Lunora — a thin better-auth wrapper: email/password, OAuth, plugins, D1-backed",
5
5
  "keywords": [
6
6
  "auth",
@@ -102,9 +102,9 @@
102
102
  "@better-auth/oauth-provider": "1.7.0-rc.2",
103
103
  "@better-auth/passkey": "1.7.0-rc.2",
104
104
  "@better-auth/scim": "1.7.0-rc.2",
105
- "@lunora/errors": "1.0.0-alpha.13",
106
- "@lunora/server": "1.0.0-alpha.61",
107
- "@lunora/values": "1.0.0-alpha.18",
105
+ "@lunora/errors": "1.0.0-alpha.14",
106
+ "@lunora/server": "1.0.0-alpha.62",
107
+ "@lunora/values": "1.0.0-alpha.19",
108
108
  "@visulima/disposable-email-domains": "1.0.1",
109
109
  "@visulima/email-verifier": "1.0.1",
110
110
  "@visulima/free-email-domains": "1.0.0",