@fonderie/auth 7.9.2 → 7.9.4

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
@@ -14,10 +14,17 @@ npm install @fonderie/auth
14
14
 
15
15
  ```ts
16
16
  import { FonderieApp, defineConfig } from '@fonderie/core';
17
+ import { PGAdapter } from '@fonderie/store';
17
18
  import { AuthModule } from '@fonderie/auth';
18
19
 
19
- const app = await new FonderieApp(defineConfig({}))
20
- .register(new AuthModule())
20
+ const store = new PGAdapter(process.env.DATABASE_URL!);
21
+
22
+ const app = await new FonderieApp(defineConfig({ db: { url: process.env.DATABASE_URL! } }))
23
+ .register(new AuthModule(store, {
24
+ providers: ['email'],
25
+ appName: 'my-app',
26
+ jwtSecret: process.env.JWT_SECRET!,
27
+ }))
21
28
  .boot();
22
29
  ```
23
30
 
@@ -35,7 +42,7 @@ Also exports `toUserDTO`, `normalizeEmail`, and the full type surface
35
42
  You've shipped this plumbing before — auth, teams, billing, messaging —
36
43
  and the next project will ask for it again. Fonderie packages it once:
37
44
  plain TypeScript modules for
38
- [`@fonderie/core`](https://github.com/fonderiejs/sdk/tree/main/packages/core),
45
+ [`@fonderie/core`](https://github.com/fonderiejs/fonderie/tree/main/packages/core),
39
46
  PostgreSQL-backed, self-hosted, MIT. No external control plane, no
40
47
  per-seat anything. Register the modules you need; skip the ones you don't.
41
48
 
@@ -43,7 +50,7 @@ per-seat anything. Register the modules you need; skip the ones you don't.
43
50
  other brick trusts the `ctx.user` this one establishes.
44
51
 
45
52
  Browse the whole set at
46
- [fonderiejs/sdk](https://github.com/fonderiejs/sdk) · follow
53
+ [fonderiejs/fonderie](https://github.com/fonderiejs/fonderie) · follow
47
54
  [@fonderiejs](https://x.com/fonderiejs)
48
55
 
49
56
  ## License
package/dist/index.cjs CHANGED
@@ -3398,7 +3398,7 @@ var AuthModule = class {
3398
3398
  name = "@fonderie/auth";
3399
3399
  // Baked in at build time by tsup.base, so the operator's Modules page can
3400
3400
  // say what is actually deployed rather than 'not reported'.
3401
- version = "7.9.2";
3401
+ version = "7.9.4";
3402
3402
  // Users, sessions, login history, suspend — only through @fonderie/admin.
3403
3403
  describeAdmin() {
3404
3404
  return { routes: describeAuthAdminRoutes(this.store) };
package/dist/index.js CHANGED
@@ -3355,7 +3355,7 @@ var AuthModule = class {
3355
3355
  name = "@fonderie/auth";
3356
3356
  // Baked in at build time by tsup.base, so the operator's Modules page can
3357
3357
  // say what is actually deployed rather than 'not reported'.
3358
- version = "7.9.2";
3358
+ version = "7.9.4";
3359
3359
  // Users, sessions, login history, suspend — only through @fonderie/admin.
3360
3360
  describeAdmin() {
3361
3361
  return { routes: describeAuthAdminRoutes(this.store) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonderie/auth",
3
- "version": "7.9.2",
3
+ "version": "7.9.4",
4
4
  "fonderie": { "stability": "stable" },
5
5
  "description": "Drop-in auth for SaaS — email/password, phone OTP, Google OAuth, stateless JWT sessions, TOTP-based MFA with backup codes, and self-service password recovery.",
6
6
  "keywords": [
@@ -59,10 +59,10 @@
59
59
  "jsonwebtoken": "^9.0.3",
60
60
  "qrcode": "^1.5.4",
61
61
  "zod": "^4.6.5",
62
- "@fonderie/rate-limit": "^4.0.20"
62
+ "@fonderie/rate-limit": "^4.0.22"
63
63
  },
64
64
  "peerDependencies": {
65
- "@fonderie/core": "^0.20.0",
65
+ "@fonderie/core": "^0.21.0",
66
66
  "@fonderie/events": "^5.0.0",
67
67
  "@fonderie/store": "^0.6.0"
68
68
  },