@stacksjs/auth 0.75.612 → 0.75.614

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.
@@ -58,4 +58,18 @@ export declare class Auth {
58
58
  static viaRemember(): boolean;
59
59
  static clearState(): void;
60
60
  }
61
+ /**
62
+ * The signed-in user on a request is the User model row this class resolves
63
+ * (stacksjs/stacks#3236).
64
+ *
65
+ * The router cannot name it, since this package depends on the router, so it
66
+ * declares `RequestTypeRegistry` for the owner of the user to fill. It is the
67
+ * row `User.find` returns, the same type `user()` and `getUserFromToken()`
68
+ * answer with, so an app's own User model and its columns come through.
69
+ */
70
+ declare module '@stacksjs/router' {
71
+ interface RequestTypeRegistry {
72
+ user: UserModel
73
+ }
74
+ }
61
75
  export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/auth",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.612",
5
+ "version": "0.75.614",
6
6
  "description": "A more simplistic way to authenticate.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -59,19 +59,19 @@
59
59
  },
60
60
  "dependencies": {
61
61
  "@stacksjs/bun-router": "^0.1.24",
62
- "@stacksjs/cache": "0.75.612",
63
- "@stacksjs/config": "0.75.612",
64
- "@stacksjs/database": "0.75.612",
65
- "@stacksjs/email": "0.75.612",
66
- "@stacksjs/env": "0.75.612",
67
- "@stacksjs/error-handling": "0.75.612",
68
- "@stacksjs/logging": "0.75.612",
69
- "@stacksjs/orm": "0.75.612",
70
- "@stacksjs/path": "0.75.612",
71
- "@stacksjs/router": "0.75.612",
72
- "@stacksjs/security": "0.75.612",
73
- "@stacksjs/socials": "0.75.612",
74
- "@stacksjs/storage": "0.75.612",
62
+ "@stacksjs/cache": "0.75.614",
63
+ "@stacksjs/config": "0.75.614",
64
+ "@stacksjs/database": "0.75.614",
65
+ "@stacksjs/email": "0.75.614",
66
+ "@stacksjs/env": "0.75.614",
67
+ "@stacksjs/error-handling": "0.75.614",
68
+ "@stacksjs/logging": "0.75.614",
69
+ "@stacksjs/orm": "0.75.614",
70
+ "@stacksjs/path": "0.75.614",
71
+ "@stacksjs/router": "0.75.614",
72
+ "@stacksjs/security": "0.75.614",
73
+ "@stacksjs/socials": "0.75.614",
74
+ "@stacksjs/storage": "0.75.614",
75
75
  "@stacksjs/ts-auth": "^0.4.7",
76
76
  "ts-qr-codes": "^0.1.8",
77
77
  "oauth4webapi": "^3.8.8",