nestjs-slightly-better-auth 1.0.0 → 1.2.0
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 +147 -3
- package/dist/admin.cjs +2 -2
- package/dist/admin.d.cts +1 -1
- package/dist/admin.d.mts +1 -1
- package/dist/admin.mjs +2 -2
- package/dist/api-key.cjs +2 -2
- package/dist/api-key.d.cts +1 -1
- package/dist/api-key.d.mts +1 -1
- package/dist/api-key.mjs +2 -2
- package/dist/{auth-contracts-BBA1C1gj.d.cts → auth-contracts-Be2_QHVX.d.mts} +6 -5
- package/dist/auth-contracts-Be2_QHVX.d.mts.map +1 -0
- package/dist/{auth-contracts-tqsfBZ8B.d.mts → auth-contracts-MRvWkLSQ.d.cts} +6 -5
- package/dist/auth-contracts-MRvWkLSQ.d.cts.map +1 -0
- package/dist/{auth-decorators-CwW5JY4y.cjs → auth-decorators-Bjv0Mase.cjs} +32 -314
- package/dist/auth-decorators-Bjv0Mase.cjs.map +1 -0
- package/dist/{auth-decorators-DfAJbHar.mjs → auth-decorators-De22j6tw.mjs} +4 -76
- package/dist/auth-decorators-De22j6tw.mjs.map +1 -0
- package/dist/{auth-errors-CsERBNWI.cjs → auth-errors-1EdQ36D8.cjs} +7 -1
- package/dist/{auth-errors-CsERBNWI.cjs.map → auth-errors-1EdQ36D8.cjs.map} +1 -1
- package/dist/{auth-errors-CQjfgjaO.mjs → auth-errors-B6jLBpQu.mjs} +2 -2
- package/dist/{auth-errors-CQjfgjaO.mjs.map → auth-errors-B6jLBpQu.mjs.map} +1 -1
- package/dist/bridge-protocol-B6iB-7X8.mjs +8 -0
- package/dist/bridge-protocol-B6iB-7X8.mjs.map +1 -0
- package/dist/bridge-protocol-BTwcn95p.cjs +25 -0
- package/dist/bridge-protocol-BTwcn95p.cjs.map +1 -0
- package/dist/decorate-Bvg21vkL.cjs +303 -0
- package/dist/decorate-Bvg21vkL.cjs.map +1 -0
- package/dist/decorate-YZjmlv7t.mjs +76 -0
- package/dist/decorate-YZjmlv7t.mjs.map +1 -0
- package/dist/express.cjs +1 -1
- package/dist/express.d.cts +1 -1
- package/dist/express.d.mts +1 -1
- package/dist/express.mjs +1 -1
- package/dist/fastify.d.cts +1 -1
- package/dist/fastify.d.mts +1 -1
- package/dist/index.cjs +174 -176
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/dist/microservices.cjs +252 -0
- package/dist/microservices.cjs.map +1 -0
- package/dist/microservices.d.cts +39 -0
- package/dist/microservices.d.cts.map +1 -0
- package/dist/microservices.d.mts +39 -0
- package/dist/microservices.d.mts.map +1 -0
- package/dist/microservices.mjs +222 -0
- package/dist/microservices.mjs.map +1 -0
- package/dist/organization.cjs +2 -2
- package/dist/organization.d.cts +1 -1
- package/dist/organization.d.mts +1 -1
- package/dist/organization.mjs +2 -2
- package/dist/websockets.cjs +351 -0
- package/dist/websockets.cjs.map +1 -0
- package/dist/websockets.d.cts +67 -0
- package/dist/websockets.d.cts.map +1 -0
- package/dist/websockets.d.mts +67 -0
- package/dist/websockets.d.mts.map +1 -0
- package/dist/websockets.mjs +338 -0
- package/dist/websockets.mjs.map +1 -0
- package/package.json +63 -4
- package/dist/auth-contracts-BBA1C1gj.d.cts.map +0 -1
- package/dist/auth-contracts-tqsfBZ8B.d.mts.map +0 -1
- package/dist/auth-decorators-CwW5JY4y.cjs.map +0 -1
- package/dist/auth-decorators-DfAJbHar.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A NestJS integration for [Better Auth](https://www.better-auth.com), built on an independently reviewed specification.
|
|
8
8
|
|
|
9
|
-
> **Scope
|
|
9
|
+
> **Scope.** The package covers HTTP, WebSocket and RPC authentication. HTTP support comprises the Nest authentication kernel, the Better Auth construction plugin, the Express and Fastify platforms, and the admin, organization and API-key authorization units. The `./websockets` entry authenticates Socket.IO and raw `ws` gateways, and the `./microservices` entry authenticates Nest microservice messages. The GraphQL transport and the conformance testing kit are not included; they arrive in later minor versions behind their own entry points. The [changelog](CHANGELOG.md) records the version that introduces each entry point.
|
|
10
10
|
|
|
11
11
|
## Install
|
|
12
12
|
|
|
@@ -16,9 +16,24 @@ pnpm add nestjs-slightly-better-auth better-auth
|
|
|
16
16
|
|
|
17
17
|
Peer dependencies: `@nestjs/common` and `@nestjs/core` 12, `better-auth` 1.7.5 or newer, `reflect-metadata` and `rxjs`. Node.js 24.11 or newer.
|
|
18
18
|
|
|
19
|
+
The `./websockets` entry also needs the optional peer `@nestjs/websockets` 12 and the Nest adapter for your socket library:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
pnpm add @nestjs/websockets @nestjs/platform-socket.io # Socket.IO
|
|
23
|
+
pnpm add @nestjs/websockets @nestjs/platform-ws # raw ws
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The `./microservices` entry also needs the optional peer `@nestjs/microservices` 12 and the client library Nest uses for your transport, for example:
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
pnpm add @nestjs/microservices @nats-io/transport-node
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Nest's gRPC transport uses `@grpc/grpc-js` and `@grpc/proto-loader`, Kafka uses `kafkajs`, RabbitMQ uses `amqplib` and `amqp-connection-manager`, MQTT uses `mqtt`, and Redis uses `ioredis`. TCP needs no client library. Applications that do not import `./microservices` do not need any of these packages.
|
|
33
|
+
|
|
19
34
|
## What this release covers
|
|
20
35
|
|
|
21
|
-
The library separates a Better Auth construction plugin, a NestJS integration kernel and optional transports. The `./plugin` entry installs the hook and cookie bridge before Better Auth creates its pipeline. The `./platform` entry provides Node/Web request and response helpers. Neither entry requires Express, Fastify, GraphQL or
|
|
36
|
+
The library separates a Better Auth construction plugin, a NestJS integration kernel and optional transports. The `./plugin` entry installs the hook and cookie bridge before Better Auth creates its pipeline. The `./platform` entry provides Node/Web request and response helpers. Neither entry requires Express, Fastify, GraphQL, WebSocket or microservice packages.
|
|
22
37
|
|
|
23
38
|
The root entry provides synchronous and asynchronous module registration, default and named instances, service readers, guards, scoped execution and compositional authorization. Tests exercise actual Nest dependency injection and Better Auth sessions, including isolation between instances, caller-origin enforcement and application shutdown. Built ESM and CommonJS consumers verify the same registration and type contracts.
|
|
24
39
|
|
|
@@ -28,10 +43,139 @@ Express preserves native controller parsing for unconditional routes that overla
|
|
|
28
43
|
|
|
29
44
|
Fastify does not expose its configured `trustProxy` value through a public inspection API. The boot summary therefore reports proxy trust as `unknown`, and diagnostics that depend on the setting are unavailable. Client IP resolution still uses the native Fastify request. Configure proxy trust on your Nest Fastify adapter and verify it against your deployment topology.
|
|
30
45
|
|
|
31
|
-
GraphQL
|
|
46
|
+
The GraphQL integration has separate implementation and end-to-end acceptance gates. It will use an optional entry point so applications install only the transports they use.
|
|
32
47
|
|
|
33
48
|
Start with the [design workspace](docs/design/README.md), [reviewed specification](docs/design/design-v7.md), [review ledger](docs/design/ledger.md) and [implementation plan](../../docs/superpowers/plans/2026-09-21-better-auth.md). Independent Better Auth, NestJS and security reviews approved the final v7 snapshot after resolving the round-6 and round-7 findings. The remaining entry points are tracked in [issue #534](https://github.com/thilllon/nestjs-kit/issues/534).
|
|
34
49
|
|
|
50
|
+
## WebSocket gateways
|
|
51
|
+
|
|
52
|
+
The `./websockets` entry authenticates Socket.IO and raw `ws` gateways. Register `socketIoTransport()` or `wsTransport()` in the module's `transports`, and decorate every gateway with `@UseBetterAuth()` so both the guard and the invocation scope run for its message handlers. Startup fails with `GATEWAY_UNGUARDED` when a message handler lacks that coverage; `@Public()` opts a gateway or handler out, and the transports' `gatewayCoverage` option downgrades the check to `"warn"` or `"off"`. Message handlers use the same access, session and authorization decorators as controllers.
|
|
53
|
+
|
|
54
|
+
```ts
|
|
55
|
+
import { Inject, Module } from "@nestjs/common";
|
|
56
|
+
import { SubscribeMessage, WebSocketGateway } from "@nestjs/websockets";
|
|
57
|
+
import type { Server } from "socket.io";
|
|
58
|
+
import {
|
|
59
|
+
BetterAuthModule,
|
|
60
|
+
CurrentSession,
|
|
61
|
+
RequireAuth,
|
|
62
|
+
UseBetterAuth,
|
|
63
|
+
} from "nestjs-slightly-better-auth";
|
|
64
|
+
import { expressPlatform } from "nestjs-slightly-better-auth/express";
|
|
65
|
+
import {
|
|
66
|
+
socketIoTransport,
|
|
67
|
+
WS_CONNECTION_AUTH,
|
|
68
|
+
type WsConnectionAuth,
|
|
69
|
+
} from "nestjs-slightly-better-auth/websockets";
|
|
70
|
+
import { auth } from "./auth"; // betterAuth({ plugins: [nestjs(), bearer()], ... })
|
|
71
|
+
|
|
72
|
+
@WebSocketGateway()
|
|
73
|
+
@UseBetterAuth()
|
|
74
|
+
export class EventsGateway {
|
|
75
|
+
constructor(
|
|
76
|
+
@Inject(WS_CONNECTION_AUTH)
|
|
77
|
+
private readonly connectionAuth: WsConnectionAuth,
|
|
78
|
+
) {}
|
|
79
|
+
|
|
80
|
+
afterInit(server: Server) {
|
|
81
|
+
// Optional: reject unauthenticated handshakes before any message arrives.
|
|
82
|
+
server.use(this.connectionAuth.socketIoMiddleware({ required: true }));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@RequireAuth()
|
|
86
|
+
@SubscribeMessage("whoami")
|
|
87
|
+
whoami(@CurrentSession() session: { user: { email: string } }) {
|
|
88
|
+
return { email: session.user.email };
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@Module({
|
|
93
|
+
imports: [
|
|
94
|
+
BetterAuthModule.forRoot({
|
|
95
|
+
auth,
|
|
96
|
+
platforms: [expressPlatform()],
|
|
97
|
+
transports: [socketIoTransport()],
|
|
98
|
+
}),
|
|
99
|
+
],
|
|
100
|
+
providers: [EventsGateway],
|
|
101
|
+
})
|
|
102
|
+
export class AppModule {}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Socket.IO reads credentials from the handshake headers. When the handshake has no `Authorization` header, a string `auth.token` becomes `Authorization: Bearer <token>`, which Better Auth's `bearer()` plugin accepts. Raw `ws` reads the upgrade request, so wrap Nest's adapter to record it: `app.useWebSocketAdapter(new (withUpgradeRequest(WsAdapter))(app))`. Without that record, public messages still run and protected messages fail with a 500 `WS_UPGRADE_REQUEST_MISSING` configuration error.
|
|
106
|
+
|
|
107
|
+
A `credentials(client)` option on either transport replaces the default mapping: the entries of the `HeadersInit` it returns override the handshake headers of the same name for authentication. The browser-origin check always uses the original handshake, so mapped credentials cannot bypass it. A non-string `auth.token`, or mapped credentials that are not string pairs or contain CR, LF, NUL or other invalid header characters, fail with a 401 `MALFORMED_CREDENTIALS` before any Better Auth call. Other credentials on the connection are not tried in their place, and the failure does not carry the rejected value. Errors thrown by the mapper itself are not converted into authentication failures.
|
|
108
|
+
|
|
109
|
+
Connection authentication runs the same origin check and default credential sources as messages, for the default instance or the one named by `instance`. `socketIoMiddleware({ required, instance })` rejects a Socket.IO handshake with a `connect_error` whose `data` holds `statusCode`, `code` and `reason`; `required: false` admits connections without credentials but still rejects invalid ones. Unexpected errors reach the client as a 500 `Internal server error`, and the server logs a summary that omits foreign error messages because they can quote credentials. For raw `ws`, call `authenticate(client)` in `handleConnection` and close rejected connections with `wsCloseCodeFor(result.failure)`, which maps 401, 403 and 429 failures to close codes 4401, 4403 and 4429.
|
|
110
|
+
|
|
111
|
+
Principal caching is off by default. A positive `principalTtlMs` reuses a successful authentication on the same connection and therefore delays revocation for ordinary handlers; handlers declared with `@RequireAuth({ authoritative: true })` always revalidate. Neither message nor connection authentication refreshes cookies.
|
|
112
|
+
|
|
113
|
+
Tests run real Socket.IO 4.8.3 and ws 8.21.3 clients against Nest 12.0.3, where Nest delivers raw `ws` authentication failures as native `exception` messages.
|
|
114
|
+
|
|
115
|
+
## RPC authentication
|
|
116
|
+
|
|
117
|
+
The `./microservices` entry authenticates messages in standalone and hybrid Nest microservices. `rpcTransport()` reads credentials from the transport's native carrier: gRPC metadata, NATS headers, Kafka headers, RabbitMQ message headers and MQTT 5 user properties. TCP and Redis messages have no header carrier, so they send credentials in a payload envelope field, `auth` by default. Every message is authenticated separately.
|
|
118
|
+
|
|
119
|
+
```ts
|
|
120
|
+
import { Controller, Module } from "@nestjs/common";
|
|
121
|
+
import { NestFactory } from "@nestjs/core";
|
|
122
|
+
import {
|
|
123
|
+
MessagePattern,
|
|
124
|
+
Transport,
|
|
125
|
+
type MicroserviceOptions,
|
|
126
|
+
} from "@nestjs/microservices";
|
|
127
|
+
import { betterAuth } from "better-auth";
|
|
128
|
+
import { bearer } from "better-auth/plugins";
|
|
129
|
+
import {
|
|
130
|
+
BetterAuthModule,
|
|
131
|
+
CurrentUser,
|
|
132
|
+
Public,
|
|
133
|
+
} from "nestjs-slightly-better-auth";
|
|
134
|
+
import { rpcTransport } from "nestjs-slightly-better-auth/microservices";
|
|
135
|
+
import { nestjs } from "nestjs-slightly-better-auth/plugin";
|
|
136
|
+
|
|
137
|
+
const auth = betterAuth({
|
|
138
|
+
// RPC messages have no HTTP origin, so the base URL must be static.
|
|
139
|
+
baseURL: "https://auth.example.com",
|
|
140
|
+
// Add your database adapter and other Better Auth options.
|
|
141
|
+
plugins: [bearer(), nestjs()],
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
@Controller()
|
|
145
|
+
class ProfileController {
|
|
146
|
+
@MessagePattern("profile.get")
|
|
147
|
+
profile(@CurrentUser() user: { id: string }) {
|
|
148
|
+
return { userId: user.id };
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@Public()
|
|
152
|
+
@MessagePattern("health")
|
|
153
|
+
health() {
|
|
154
|
+
return { ok: true };
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@Module({
|
|
159
|
+
imports: [BetterAuthModule.forRoot({ auth, transports: [rpcTransport()] })],
|
|
160
|
+
controllers: [ProfileController],
|
|
161
|
+
})
|
|
162
|
+
class AppModule {}
|
|
163
|
+
|
|
164
|
+
const app = await NestFactory.createMicroservice<MicroserviceOptions>(
|
|
165
|
+
AppModule,
|
|
166
|
+
{ transport: Transport.TCP, options: { host: "127.0.0.1", port: 4000 } },
|
|
167
|
+
);
|
|
168
|
+
await app.listen();
|
|
169
|
+
```
|
|
170
|
+
|
|
171
|
+
A TCP client puts credentials in the envelope, for example `{ auth: { authorization: "Bearer <token>" }, id: 1 }`; a NATS client sets an `authorization` header through `NatsRecordBuilder`. Carriers accept only the `authorization`, `cookie` and `x-api-key` fields by default. Pass carrier factories such as `grpcCarrier({ metadata: ["authorization"] })` or `payloadCarrier({ field: "credentials" })` in `rpcTransport({ carriers })` to change the accepted fields or the envelope. Host, forwarding and `set-cookie` metadata never reach Better Auth, so a broker message cannot claim an HTTP origin.
|
|
172
|
+
|
|
173
|
+
Configure a static Better Auth base URL, or a fallback for a dynamic one: RPC transports have no request host, and startup fails with `DYNAMIC_BASE_URL_WITHOUT_FALLBACK` otherwise. Message authentication never refreshes or sets cookies. Public messages run without credentials; protected messages without a matching carrier are rejected as unauthenticated. Malformed credential values, such as values containing CR, LF or NUL, are rejected with reason `MALFORMED_CREDENTIALS` without reaching Better Auth, the handler or logs.
|
|
174
|
+
|
|
175
|
+
In a hybrid application, Nest applies global guards to microservice handlers only when `connectMicroservice()` receives `{ inheritAppConfig: true }`. Either pass that option to every `connectMicroservice()` call and pass `rpcTransport({ inheritAppConfig: true })`, or apply `@UseBetterAuth()` to message controllers and `@Public()` to public handlers. Startup verifies the explicit form and fails with `RPC_HANDLER_UNGUARDED` for an uncovered message or event handler; `hybridCoverage: "warn"` or `"off"` lowers that check. The inheritance option is an assertion that the application passes the same flag to Nest, and startup logs the `W_RPC_INHERIT_APP_CONFIG_ASSERTED` warning for it.
|
|
176
|
+
|
|
177
|
+
Failures become `RpcException` payloads with `statusCode`, `code` and, where present, `reason`. gRPC calls receive native status codes: 16 for authentication, 7 for authorization, 8 for throttling and 13 for redacted infrastructure failures. End-to-end tests run real TCP and gRPC servers and real NATS, Kafka, RabbitMQ, MQTT 5 and Redis brokers against Nest 12.0.3, including hybrid applications with both coverage modes and default plus named instances.
|
|
178
|
+
|
|
35
179
|
## Develop in this monorepo
|
|
36
180
|
|
|
37
181
|
From the repository root:
|
package/dist/admin.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_auth_errors = require("./auth-errors-
|
|
3
|
-
const require_auth_decorators = require("./auth-decorators-
|
|
2
|
+
const require_auth_errors = require("./auth-errors-1EdQ36D8.cjs");
|
|
3
|
+
const require_auth_decorators = require("./auth-decorators-Bjv0Mase.cjs");
|
|
4
4
|
let better_auth_api = require("better-auth/api");
|
|
5
5
|
//#region src/admin.ts
|
|
6
6
|
const adminPermissionPolicy = {
|
package/dist/admin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as AuthorizationPolicy, kt as PrincipalKind, mt as AdminPermissions, nt as Requirement, yt as AuthPrincipal } from "./auth-contracts-
|
|
1
|
+
import { f as AuthorizationPolicy, kt as PrincipalKind, mt as AdminPermissions, nt as Requirement, yt as AuthPrincipal } from "./auth-contracts-MRvWkLSQ.cjs";
|
|
2
2
|
//#region src/admin.d.ts
|
|
3
3
|
export interface PermissionOptions {
|
|
4
4
|
principals?: readonly PrincipalKind[];
|
package/dist/admin.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as AuthorizationPolicy, kt as PrincipalKind, mt as AdminPermissions, nt as Requirement, yt as AuthPrincipal } from "./auth-contracts-
|
|
1
|
+
import { f as AuthorizationPolicy, kt as PrincipalKind, mt as AdminPermissions, nt as Requirement, yt as AuthPrincipal } from "./auth-contracts-Be2_QHVX.mjs";
|
|
2
2
|
//#region src/admin.d.ts
|
|
3
3
|
export interface PermissionOptions {
|
|
4
4
|
principals?: readonly PrincipalKind[];
|
package/dist/admin.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BetterAuthConfigurationError } from "./auth-errors-
|
|
2
|
-
import { u as Require } from "./auth-decorators-
|
|
1
|
+
import { n as BetterAuthConfigurationError } from "./auth-errors-B6jLBpQu.mjs";
|
|
2
|
+
import { u as Require } from "./auth-decorators-De22j6tw.mjs";
|
|
3
3
|
import { isAPIError } from "better-auth/api";
|
|
4
4
|
//#region src/admin.ts
|
|
5
5
|
const adminPermissionPolicy = {
|
package/dist/api-key.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_auth_errors = require("./auth-errors-
|
|
3
|
-
const require_auth_decorators = require("./auth-decorators-
|
|
2
|
+
const require_auth_errors = require("./auth-errors-1EdQ36D8.cjs");
|
|
3
|
+
const require_auth_decorators = require("./auth-decorators-Bjv0Mase.cjs");
|
|
4
4
|
let better_auth_plugins_access = require("better-auth/plugins/access");
|
|
5
5
|
//#region src/api-key.ts
|
|
6
6
|
const API_KEY_PRINCIPAL_KIND = "api-key";
|
package/dist/api-key.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as PrincipalDelegation, et as PrincipalSource, nt as Requirement, o as AuthPrincipalBase } from "./auth-contracts-
|
|
1
|
+
import { Y as PrincipalDelegation, et as PrincipalSource, nt as Requirement, o as AuthPrincipalBase } from "./auth-contracts-MRvWkLSQ.cjs";
|
|
2
2
|
//#region src/api-key.d.ts
|
|
3
3
|
export declare const API_KEY_PRINCIPAL_KIND: "api-key";
|
|
4
4
|
export interface ApiKeyPrincipal extends AuthPrincipalBase {
|
package/dist/api-key.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Y as PrincipalDelegation, et as PrincipalSource, nt as Requirement, o as AuthPrincipalBase } from "./auth-contracts-
|
|
1
|
+
import { Y as PrincipalDelegation, et as PrincipalSource, nt as Requirement, o as AuthPrincipalBase } from "./auth-contracts-Be2_QHVX.mjs";
|
|
2
2
|
//#region src/api-key.d.ts
|
|
3
3
|
export declare const API_KEY_PRINCIPAL_KIND: "api-key";
|
|
4
4
|
export interface ApiKeyPrincipal extends AuthPrincipalBase {
|
package/dist/api-key.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as BetterAuthConfigurationError, r as BetterAuthInfrastructureError, t as AuthFailures, u as normalizeThrown } from "./auth-errors-
|
|
2
|
-
import { F as
|
|
1
|
+
import { n as BetterAuthConfigurationError, r as BetterAuthInfrastructureError, t as AuthFailures, u as normalizeThrown } from "./auth-errors-B6jLBpQu.mjs";
|
|
2
|
+
import { F as rejected, M as authenticated, j as absent, u as Require } from "./auth-decorators-De22j6tw.mjs";
|
|
3
3
|
import { role } from "better-auth/plugins/access";
|
|
4
4
|
//#region src/api-key.ts
|
|
5
5
|
const API_KEY_PRINCIPAL_KIND = "api-key";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { IncomingHttpHeaders, IncomingMessage } from "node:http";
|
|
2
1
|
import { CallHandler, CanActivate, DynamicModule, ExecutionContext, InjectionToken, Logger, LoggerService, ModuleMetadata, NestInterceptor, OptionalFactoryDependency, Provider, Type } from "@nestjs/common";
|
|
3
2
|
import { AbstractHttpAdapter, DiscoveryService, HttpAdapterHost, ModuleRef, Reflector } from "@nestjs/core";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import { IntrinsicException } from "@nestjs/common/exceptions/intrinsic.exception.js";
|
|
5
|
+
import { IncomingHttpHeaders, IncomingMessage } from "node:http";
|
|
4
6
|
import "@nestjs/core/injector/instance-wrapper.js";
|
|
5
7
|
import { HookEndpointContext } from "better-auth";
|
|
6
|
-
import { IntrinsicException } from "@nestjs/common/exceptions/intrinsic.exception.js";
|
|
7
|
-
import { Observable } from "rxjs";
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/auth-errors.d.ts
|
|
10
10
|
type AuthErrorCode = "UNAUTHENTICATED" | "FORBIDDEN" | "RATE_LIMITED";
|
|
@@ -143,6 +143,7 @@ declare class BetterAuthModule {
|
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/bridge-protocol.d.ts
|
|
145
145
|
declare const EXTENSION_DEFINITION: unique symbol;
|
|
146
|
+
declare const UPGRADE_REQUEST: unique symbol;
|
|
146
147
|
interface BridgeHandle {
|
|
147
148
|
readonly protocol: 4;
|
|
148
149
|
readonly clientIpHeader: string | null;
|
|
@@ -1631,5 +1632,5 @@ interface PolicyBootContext {
|
|
|
1631
1632
|
readonly site: string;
|
|
1632
1633
|
}
|
|
1633
1634
|
//#endregion
|
|
1634
|
-
export { PrincipalResult as $, AfterAuth as $t, ExpressPlatformOptions as A,
|
|
1635
|
-
//# sourceMappingURL=auth-contracts-
|
|
1635
|
+
export { PrincipalResult as $, AfterAuth as $t, ExpressPlatformOptions as A, UPGRADE_REQUEST as An, PrincipalOfKind as At, HttpRequestAccessor as B, AuthErrorBody as Bn, httpTransport as Bt, CookieForwardingOptions as C, allow as Cn, DatabaseHookMethod as Ct, DbHookMethodDecorator as D, TransportRegistry as Dn, IsRegistered as Dt, DatabaseHookTarget as E, BetterAuthService as En, GetSessionWithHeaders as Et, HookMethodDecorator as F, SCOPE_CORE as Fn, SessionPrincipal as Ft, PlatformPrepareContext as G, AuthTransportErrorPayload as Gn, rejected as Gt, InvocationLineage as H, AuthFailure as Hn, absent as Ht, HookOptions as I, getBetterAuthHandleToken as In, UnvalidatedBody as It, PolicyRef as J, ErrorMappingOptions as Jn, RequireFreshSession as Jt, PolicyBootContext as K, BetterAuthConfigurationError as Kn, CurrentSession as Kt, HookPredicate as L, getBetterAuthInstanceToken as Ln, UserOf as Lt, ExtensionRef as M, GUARD_CORE as Mn, RegisteredAuth as Mt, FastifyPlatformOptions as N, POLICY_INVOKER as Nn, RegisteredInstances as Nt, DbHookOptions as O, InstanceLookup as On, OrgPermissions as Ot, GuardReach as P, PRINCIPAL_RESOLVER as Pn, SessionOf as Pt, PrincipalResolver as Q, isInfrastructureError as Qn, AcceptPrincipals as Qt, HttpMountOptions as R, getBetterAuthOptionsToken as Rn, WithActiveOrganization as Rt, ClaimOptions as S, BetterAuthGuard as Sn, DatabaseHookData as St, CorsOriginOptions as T, deny as Tn, EndpointPath as Tt, OriginCheckOptions as U, AuthFailures as Un, authenticated as Ut, InboundAuthRequest as V, AuthErrorCode as Vn, betterAuthCorsOrigin as Vt, PlatformMountContext as W, AuthGraphqlExtensions as Wn, definePrincipalSource as Wt, PrincipalReading as X, isAuthFailure as Xn, freshSession as Xt, PrincipalDelegation as Y, getRawCause as Yn, SESSION_PRINCIPAL_KIND as Yt, PrincipalRequest as Z, isConfigurationError as Zn, sessionPrincipal as Zt, BetterAuthRuntimeOptions as _, requirement as _n, AuthLike as _t, AuthHandlerInterceptor as a, OptionalAuth as an, ResolutionRequest as at, BootAdviceContext as b, defineTransport as bn, AuthSession as bt, AuthTransport as c, RequireAuth as cn, SessionOption as ct, AuthorizationLimits as d, UseAuthInstance as dn, TransportCall as dt, AfterDatabase as en, PrincipalSource as et, AuthorizationPolicy as f, UseBetterAuth as fn, TransportKit as ft, BetterAuthModuleOptions as g, definePrincipalParam as gn, AuthHookContext as gt, BetterAuthModuleAsyncOptions as h, defineInvocationParam as hn, AuthAfterHookContext as ht, AuthHandle as i, ForwardAuthCookies as in, RequirementOptions as it, ExtensionDefinition as j, BetterAuthModule as jn, Register as jt, DefaultInstanceCheck as k, EXTENSION_DEFINITION as kn, PrincipalKind as kt, AuthorizationContext as l, SkipDefaultRequirements as ln, SessionPrincipalOptions as lt, BetterAuthFactoryResult as m, anyOf as mn, AdminPermissions as mt, ApplicationRouteDescriptor as n, BeforeDatabase as nn, Requirement as nt, AuthPrincipalBase as o, Public as on, RoutePlan as ot, BetterAuthAppOptions as p, allOf as pn, TransportValidationContext as pt, PolicyInvoker as q, BetterAuthInfrastructureError as qn, CurrentUser as qt, AuthContextView as r, CurrentPrincipal as rn, RequirementExpr as rt, AuthRouteBinding as s, Require as sn, ScopeInit as st, AdvisedHandler as t, BeforeAuth as tn, ProxyTrust as tt, AuthorizationDecision as u, SkipOriginCheck as un, StaticOptionMustBePassedToForRootAsync as ut, BetterAuthStaticOptions as v, defineExtension as vn, AuthOf as vt, CookieSink as w, definePolicy as wn, DatabaseHookResult as wt, BrowserExposure as x, BetterAuthScopeInterceptor as xn, AuthUser as xt, BootAdvice as y, defineHttpPlatform as yn, AuthPrincipal as yt, HttpPlatform as z, getBetterAuthServiceToken as zn, PrincipalKinds as zt };
|
|
1636
|
+
//# sourceMappingURL=auth-contracts-Be2_QHVX.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-contracts-Be2_QHVX.d.mts","names":[],"sources":["../src/auth-errors.ts","../src/auth-tokens.ts","../src/auth-module.ts","../src/bridge-protocol.ts","../src/request-scope.ts","../src/origin-check.ts","../src/instance-registry.ts","../src/mount-coordinator.ts","../src/principal-readings.ts","../src/policy-resolver.ts","../src/transport-registry.ts","../src/route-planner.ts","../src/auth-service.ts","../src/authorization-evaluator.ts","../src/auth-guard.ts","../src/auth-scope-interceptor.ts","../src/auth-module-definition.ts","../src/auth-decorators.ts","../src/session-principal.ts","../src/principal-resolver.ts","../src/auth-exchange.ts","../src/http-transport.ts","../src/index.ts","../src/auth-types.ts","../src/auth-contracts.ts"],"mappings":";;;;;;;;;KAkBY;;UAGK;WACN;WACA,MAAM;WACN;WACA;WACA;WACA,UAAU;;UAGJ;EACf;EACA;EACA,MAAM;EACN;EACA;;UAGe;EACf,MAAM;EACN;EACA;;UAGe;EACf;EACA;EACA,MAAM;EACN;EACA;;UAGe;EACf,OACE,SAAS,aACT,SAAS,kBACT;EAEF;;iBAQc,cAAc,iBAAiB,SAAS;iBAIxC,sBACd,iBACC,SAAS;iBAII,qBACd,iBACC,SAAS;iBAqDH,UAAU;EACjB;EACA;EACA;EACA;EACA;IACE;cA6BS;EACX,gBAAe,mBAAoB;EAGnC,iBAAQ;EACR,UAAS,gBAAe,mBAAqB;EAG7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aACP;eACE;eACA;iBAAmB;;;aAErB;eAAwB;;aACxB;eACE;iBACE;iBACA;;eAEF;eACA;eACA;;;;WAIJ;IACP,aAAa,iBAAiB;eACnB;eACA;eACA;eACA,aAAa;;;WAGjB,aAAa,SACpB;aAGa;aACA;eACE;eACA;;;WAKR;aACE;aACA;aACA;;WAEF;IACP,QAAQ;MACN;MACA;QAAkB;QAAe;;QAC/B;IACJ,WAAW;MACT;MACA;QAAkB;QAAe;;MACjC,QAAQ;QACN;;EAEN,UAAU;EACV,UAAU;EACV,gBACE,aACA;IAAa;;;UAIA,oBACf,kBACA,UAAU,oBAAoB;;WAGrB;WACA;;aAEE;;;;;;;aAOA,sBAAsB;;aAEtB;;aAEA;;aAEA;;;EAGX,SACE,QAAQ,QACR,SAAS,qBAAqB,KAC7B,wBAAwB,QAAQ;;EAEnC,UAAU,QAAQ,QAAQ,MAAM,2BAA2B;;EAE3D,QACE,KAAK,6BACK,eAAe,iBAAiB;;;;;;KAOlC,UAAU,UAClB,oBAAoB,eACpB,KAAK,oBAAoB,gBACzB;UAEa,YAAY;WAClB,QAAQ,UAAU;WAClB,QAAQ;WACR;;WAEA;;WAEA;;KAEC,kBACR;WACW,gBAAgB;;WAChB,gBAAgB;;KAEnB;WACG;;WAEA;WACA;WACA;WACA;WACA;;UAGE,qBACf,UAAU,oBAAoB;WAErB,WAAW;WACX;WACA;WACA,SAAS;WACT,SAAS;WACT;aAAqB;aAAyB;;EACvD,MAAM;WACG;aAAoB,OAAO;aAAe;;WAC1C,MAAM;;;;;EAKf,KAAK,GAAG,+BAA+B,eAAe,QAAQ,KAAK,QAAQ;;EAE3E,QAAQ,cAAc;WACb,WAAW;;UAGL;WACN,MAAM;WACN,SAAS;WACT"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { IncomingHttpHeaders, IncomingMessage } from "node:http";
|
|
1
2
|
import { CallHandler, CanActivate, DynamicModule, ExecutionContext, InjectionToken, Logger, LoggerService, ModuleMetadata, NestInterceptor, OptionalFactoryDependency, Provider, Type } from "@nestjs/common";
|
|
2
3
|
import { AbstractHttpAdapter, DiscoveryService, HttpAdapterHost, ModuleRef, Reflector } from "@nestjs/core";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
4
|
-
import { IntrinsicException } from "@nestjs/common/exceptions/intrinsic.exception.js";
|
|
5
|
-
import { IncomingHttpHeaders, IncomingMessage } from "node:http";
|
|
6
4
|
import "@nestjs/core/injector/instance-wrapper.js";
|
|
7
5
|
import { HookEndpointContext } from "better-auth";
|
|
6
|
+
import { IntrinsicException } from "@nestjs/common/exceptions/intrinsic.exception.js";
|
|
7
|
+
import { Observable } from "rxjs";
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/auth-errors.d.ts
|
|
10
10
|
type AuthErrorCode = "UNAUTHENTICATED" | "FORBIDDEN" | "RATE_LIMITED";
|
|
@@ -143,6 +143,7 @@ declare class BetterAuthModule {
|
|
|
143
143
|
//#endregion
|
|
144
144
|
//#region src/bridge-protocol.d.ts
|
|
145
145
|
declare const EXTENSION_DEFINITION: unique symbol;
|
|
146
|
+
declare const UPGRADE_REQUEST: unique symbol;
|
|
146
147
|
interface BridgeHandle {
|
|
147
148
|
readonly protocol: 4;
|
|
148
149
|
readonly clientIpHeader: string | null;
|
|
@@ -1631,5 +1632,5 @@ interface PolicyBootContext {
|
|
|
1631
1632
|
readonly site: string;
|
|
1632
1633
|
}
|
|
1633
1634
|
//#endregion
|
|
1634
|
-
export { PrincipalResult as $, AfterAuth as $t, ExpressPlatformOptions as A,
|
|
1635
|
-
//# sourceMappingURL=auth-contracts-
|
|
1635
|
+
export { PrincipalResult as $, AfterAuth as $t, ExpressPlatformOptions as A, UPGRADE_REQUEST as An, PrincipalOfKind as At, HttpRequestAccessor as B, AuthErrorBody as Bn, httpTransport as Bt, CookieForwardingOptions as C, allow as Cn, DatabaseHookMethod as Ct, DbHookMethodDecorator as D, TransportRegistry as Dn, IsRegistered as Dt, DatabaseHookTarget as E, BetterAuthService as En, GetSessionWithHeaders as Et, HookMethodDecorator as F, SCOPE_CORE as Fn, SessionPrincipal as Ft, PlatformPrepareContext as G, AuthTransportErrorPayload as Gn, rejected as Gt, InvocationLineage as H, AuthFailure as Hn, absent as Ht, HookOptions as I, getBetterAuthHandleToken as In, UnvalidatedBody as It, PolicyRef as J, ErrorMappingOptions as Jn, RequireFreshSession as Jt, PolicyBootContext as K, BetterAuthConfigurationError as Kn, CurrentSession as Kt, HookPredicate as L, getBetterAuthInstanceToken as Ln, UserOf as Lt, ExtensionRef as M, GUARD_CORE as Mn, RegisteredAuth as Mt, FastifyPlatformOptions as N, POLICY_INVOKER as Nn, RegisteredInstances as Nt, DbHookOptions as O, InstanceLookup as On, OrgPermissions as Ot, GuardReach as P, PRINCIPAL_RESOLVER as Pn, SessionOf as Pt, PrincipalResolver as Q, isInfrastructureError as Qn, AcceptPrincipals as Qt, HttpMountOptions as R, getBetterAuthOptionsToken as Rn, WithActiveOrganization as Rt, ClaimOptions as S, BetterAuthGuard as Sn, DatabaseHookData as St, CorsOriginOptions as T, deny as Tn, EndpointPath as Tt, OriginCheckOptions as U, AuthFailures as Un, authenticated as Ut, InboundAuthRequest as V, AuthErrorCode as Vn, betterAuthCorsOrigin as Vt, PlatformMountContext as W, AuthGraphqlExtensions as Wn, definePrincipalSource as Wt, PrincipalReading as X, isAuthFailure as Xn, freshSession as Xt, PrincipalDelegation as Y, getRawCause as Yn, SESSION_PRINCIPAL_KIND as Yt, PrincipalRequest as Z, isConfigurationError as Zn, sessionPrincipal as Zt, BetterAuthRuntimeOptions as _, requirement as _n, AuthLike as _t, AuthHandlerInterceptor as a, OptionalAuth as an, ResolutionRequest as at, BootAdviceContext as b, defineTransport as bn, AuthSession as bt, AuthTransport as c, RequireAuth as cn, SessionOption as ct, AuthorizationLimits as d, UseAuthInstance as dn, TransportCall as dt, AfterDatabase as en, PrincipalSource as et, AuthorizationPolicy as f, UseBetterAuth as fn, TransportKit as ft, BetterAuthModuleOptions as g, definePrincipalParam as gn, AuthHookContext as gt, BetterAuthModuleAsyncOptions as h, defineInvocationParam as hn, AuthAfterHookContext as ht, AuthHandle as i, ForwardAuthCookies as in, RequirementOptions as it, ExtensionDefinition as j, BetterAuthModule as jn, Register as jt, DefaultInstanceCheck as k, EXTENSION_DEFINITION as kn, PrincipalKind as kt, AuthorizationContext as l, SkipDefaultRequirements as ln, SessionPrincipalOptions as lt, BetterAuthFactoryResult as m, anyOf as mn, AdminPermissions as mt, ApplicationRouteDescriptor as n, BeforeDatabase as nn, Requirement as nt, AuthPrincipalBase as o, Public as on, RoutePlan as ot, BetterAuthAppOptions as p, allOf as pn, TransportValidationContext as pt, PolicyInvoker as q, BetterAuthInfrastructureError as qn, CurrentUser as qt, AuthContextView as r, CurrentPrincipal as rn, RequirementExpr as rt, AuthRouteBinding as s, Require as sn, ScopeInit as st, AdvisedHandler as t, BeforeAuth as tn, ProxyTrust as tt, AuthorizationDecision as u, SkipOriginCheck as un, StaticOptionMustBePassedToForRootAsync as ut, BetterAuthStaticOptions as v, defineExtension as vn, AuthOf as vt, CookieSink as w, definePolicy as wn, DatabaseHookResult as wt, BrowserExposure as x, BetterAuthScopeInterceptor as xn, AuthUser as xt, BootAdvice as y, defineHttpPlatform as yn, AuthPrincipal as yt, HttpPlatform as z, getBetterAuthServiceToken as zn, PrincipalKinds as zt };
|
|
1636
|
+
//# sourceMappingURL=auth-contracts-MRvWkLSQ.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-contracts-MRvWkLSQ.d.cts","names":[],"sources":["../src/auth-errors.ts","../src/auth-tokens.ts","../src/auth-module.ts","../src/bridge-protocol.ts","../src/request-scope.ts","../src/origin-check.ts","../src/instance-registry.ts","../src/mount-coordinator.ts","../src/principal-readings.ts","../src/policy-resolver.ts","../src/transport-registry.ts","../src/route-planner.ts","../src/auth-service.ts","../src/authorization-evaluator.ts","../src/auth-guard.ts","../src/auth-scope-interceptor.ts","../src/auth-module-definition.ts","../src/auth-decorators.ts","../src/session-principal.ts","../src/principal-resolver.ts","../src/auth-exchange.ts","../src/http-transport.ts","../src/index.ts","../src/auth-types.ts","../src/auth-contracts.ts"],"mappings":";;;;;;;;;KAkBY;;UAGK;WACN;WACA,MAAM;WACN;WACA;WACA;WACA,UAAU;;UAGJ;EACf;EACA;EACA,MAAM;EACN;EACA;;UAGe;EACf,MAAM;EACN;EACA;;UAGe;EACf;EACA;EACA,MAAM;EACN;EACA;;UAGe;EACf,OACE,SAAS,aACT,SAAS,kBACT;EAEF;;iBAQc,cAAc,iBAAiB,SAAS;iBAIxC,sBACd,iBACC,SAAS;iBAII,qBACd,iBACC,SAAS;iBAqDH,UAAU;EACjB;EACA;EACA;EACA;EACA;IACE;cA6BS;EACX,gBAAe,mBAAoB;EAGnC,iBAAQ;EACR,UAAS,gBAAe,mBAAqB;EAG7C,aAAY,iBAAkB;;cA4BnB,qCAAqC;WACvC;WACA;WACA;WACA;WACA;WACA;aACP;aACA;aACA;;WAEO,kBAAkB;EAE3B,YAAY,cAAc,gBAAgB;SAUnC,UACL,cACA,gBACA;IAAY;IAAe;MAC1B;;cAeQ,sCAAsC;WACxC,OAAO;WACP;aACP;aACA;aACA;;EAGF,YAAY,gBAAgB;IAAY;;;iBAwB1B,YAAY,OAAO;;;;iBC7QnB,2BAA2B;iBAI3B,0BAA0B;iBAI1B,0BAA0B;iBAI1B,yBAAyB;cAK5B;cAGA;cAGA;cAGA;cAGA;cAGA;cAGA;cAGA;cACA;cACA;cAGA;cAGA;cACA;cACA;cACA;cAGA;cAGA;cAGA;cAGA;cAGA;cAGA;cAGA;cAGA;cAGA;cAGA;cACA;cAGA;iBAEG,yBAAyB;iBAMzB,kBACd,kDACA,kBACA;cAOW;cAGA;;;cCnGA;SACJ,QAAQ,UAAU,WAAW,gBAClC,SAAS,wBAAwB,KAC/B;IAAyB;MAAqB,qBAAqB,KACpE;SACI,QAAQ,UAAU,UACvB,SAAS,wBAAwB;IAAO;MAAiB,eACxD;SAWI,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