modelence 0.21.0-ml.dev.0 → 0.21.0-ml.dev.1

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.
@@ -1,2 +1,2 @@
1
- export{l as author,i as bin,n as bugs,s as default,q as dependencies,d as description,p as devDependencies,g as exports,h as files,o as homepage,m as license,e as main,b as name,r as peerDependencies,k as repository,j as scripts,a as type,f as types,c as version}from'./chunk-QRLSXYLQ.js';//# sourceMappingURL=package-47UFS4SM.js.map
2
- //# sourceMappingURL=package-47UFS4SM.js.map
1
+ export{l as author,i as bin,n as bugs,s as default,q as dependencies,d as description,p as devDependencies,g as exports,h as files,o as homepage,m as license,e as main,b as name,r as peerDependencies,k as repository,j as scripts,a as type,f as types,c as version}from'./chunk-3MACQTB3.js';//# sourceMappingURL=package-TMVJXVUQ.js.map
2
+ //# sourceMappingURL=package-TMVJXVUQ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"package-47UFS4SM.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"package-TMVJXVUQ.js"}
@@ -0,0 +1,2 @@
1
+ export{g as getCallContext,f as startServer}from'./chunk-WAYG54Z2.js';import'./chunk-3MACQTB3.js';import'./chunk-AIQUY53H.js';import'./chunk-MIRF7FP3.js';import'./chunk-ENHGU3X4.js';import'./chunk-5M6FUMUK.js';import'./chunk-DO5TZLF5.js';//# sourceMappingURL=server-LJUY2OWZ.js.map
2
+ //# sourceMappingURL=server-LJUY2OWZ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"server-KXKDTGVJ.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"server-LJUY2OWZ.js"}
package/dist/server.d.ts CHANGED
@@ -378,6 +378,26 @@ type AuthConfig = {
378
378
  login?: AuthOption;
379
379
  /** @deprecated Use {@link AuthConfig.onAfterSignup} and {@link AuthConfig.onSignupError} instead. */
380
380
  signup?: AuthOption;
381
+ /**
382
+ * Enables passwordless magic link authentication. Disabled by default —
383
+ * magic link doubles as sign-up (an unknown email gets an account created
384
+ * when the link is used), so it must be opted into explicitly.
385
+ *
386
+ * Requires an email provider and delivery settings under the `email` option
387
+ * (see `EmailConfig.magicLink`).
388
+ *
389
+ * @example
390
+ * ```typescript
391
+ * startApp({
392
+ * auth: {
393
+ * magicLink: { enabled: true },
394
+ * },
395
+ * });
396
+ * ```
397
+ */
398
+ magicLink?: {
399
+ enabled?: boolean;
400
+ };
381
401
  /**
382
402
  * Controls how OAuth providers handle existing accounts with matching email.
383
403
  * - 'manual' (default): Returns an error when an OAuth login matches an existing email.
package/dist/server.js CHANGED
@@ -1,2 +1,2 @@
1
- export{m as ObjectId,k as ServerChannel,a as consumeRateLimit,c as deleteFile,j as deleteUser,i as disableUser,d as downloadFile,e as getFileUrl,b as getUploadUrl,l as sendEmail,h as startApp}from'./chunk-6IHBF2HB.js';import'./chunk-QRLSXYLQ.js';export{w as LiveData,a as Module,b as Store,v as authenticate,i as clearSessionUser,y as createQuery,k as createSession,f as dbSessions,o as dbUsers,j as invalidateAllUserSessions,g as obtainSession,c as schema,l as setAuthTokenCookie,h as setSessionUser}from'./chunk-AIQUY53H.js';import'./chunk-MIRF7FP3.js';export{a as getConfig}from'./chunk-ENHGU3X4.js';import'./chunk-5M6FUMUK.js';import'./chunk-DO5TZLF5.js';//# sourceMappingURL=server.js.map
1
+ export{m as ObjectId,k as ServerChannel,a as consumeRateLimit,c as deleteFile,j as deleteUser,i as disableUser,d as downloadFile,e as getFileUrl,b as getUploadUrl,l as sendEmail,h as startApp}from'./chunk-WAYG54Z2.js';import'./chunk-3MACQTB3.js';export{w as LiveData,a as Module,b as Store,v as authenticate,i as clearSessionUser,y as createQuery,k as createSession,f as dbSessions,o as dbUsers,j as invalidateAllUserSessions,g as obtainSession,c as schema,l as setAuthTokenCookie,h as setSessionUser}from'./chunk-AIQUY53H.js';import'./chunk-MIRF7FP3.js';export{a as getConfig}from'./chunk-ENHGU3X4.js';import'./chunk-5M6FUMUK.js';import'./chunk-DO5TZLF5.js';//# sourceMappingURL=server.js.map
2
2
  //# sourceMappingURL=server.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "modelence",
4
- "version": "0.21.0-ml.dev.0",
4
+ "version": "0.21.0-ml.dev.1",
5
5
  "description": "The Node.js Framework for Real-Time MongoDB Apps",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/global.d.ts",