@stacksjs/auth 0.75.79 → 0.75.81

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.
@@ -18,10 +18,10 @@ export declare function resendVerificationEmail(user: { id: number, email: strin
18
18
  * Email verification facade
19
19
  */
20
20
  export declare const EmailVerification: {
21
- isVerified: unknown;
22
- send: unknown;
23
- verify: unknown;
24
- resend: unknown
21
+ isVerified: typeof isEmailVerified;
22
+ send: typeof sendVerificationEmail;
23
+ verify: typeof verifyEmail;
24
+ resend: typeof resendVerificationEmail
25
25
  };
26
26
  export declare interface EmailVerificationResult {
27
27
  success: boolean
@@ -46,5 +46,5 @@ export declare function authenticatedUser(request: any): Promise<any | undefined
46
46
  export declare const authMiddlewareHandler: {
47
47
  /** @defaultValue 'auth' */
48
48
  name: string;
49
- handle: unknown
49
+ handle: typeof authMiddleware
50
50
  };
package/dist/rbac.d.ts CHANGED
@@ -138,8 +138,8 @@ export declare function withRbac<T extends UserModel | { id: number }>(user: T):
138
138
  * RBAC facade for convenient access
139
139
  */
140
140
  export declare const Rbac: {
141
- setStore: unknown;
142
- flushCache: unknown;
141
+ setStore: typeof setRbacStore;
142
+ flushCache: typeof flushRbacCache;
143
143
  createRole: typeof createRole;
144
144
  findRole: typeof findRole;
145
145
  deleteRole: typeof deleteRole;
@@ -71,11 +71,11 @@ export declare function sessionCheck(sessionId: string): Promise<boolean>;
71
71
  */
72
72
  export declare function sessionRefresh(sessionId: string, ttlMs?: unknown): Promise<boolean>;
73
73
  export declare const SessionAuth: {
74
- login: unknown;
75
- logout: unknown;
76
- destroyAll: unknown;
77
- user: unknown;
78
- check: unknown;
79
- refresh: unknown
74
+ login: typeof sessionLogin;
75
+ logout: typeof sessionLogout;
76
+ destroyAll: typeof sessionDestroyAll;
77
+ user: typeof sessionUser;
78
+ check: typeof sessionCheck;
79
+ refresh: typeof sessionRefresh
80
80
  };
81
81
  declare type UserModel = NonNullable<Awaited<ReturnType<typeof User.find>>>;
@@ -62,16 +62,16 @@ export declare function withTwoFactorChallenge<T>(challengeToken: string, comple
62
62
  /** Revoke password-stage grants in the same transaction as credential recovery. */
63
63
  export declare function revokeTwoFactorChallenges(userId: number): Promise<void>;
64
64
  export declare const TwoFactor: {
65
- isEnabled: unknown;
66
- getState: unknown;
67
- generateSetup: unknown;
68
- stashPendingSecret: unknown;
69
- consumePendingSecret: unknown;
70
- enable: unknown;
71
- disable: unknown;
72
- verifyLoginCode: unknown;
73
- createChallenge: unknown;
74
- consumeChallenge: unknown
65
+ isEnabled: typeof isTwoFactorEnabled;
66
+ getState: typeof getTwoFactorState;
67
+ generateSetup: typeof generateTwoFactorSetup;
68
+ stashPendingSecret: typeof stashPendingTwoFactorSecret;
69
+ consumePendingSecret: typeof consumePendingTwoFactorSecret;
70
+ enable: typeof enableTwoFactor;
71
+ disable: typeof disableTwoFactor;
72
+ verifyLoginCode: typeof verifyTwoFactorLoginCode;
73
+ createChallenge: typeof createTwoFactorChallenge;
74
+ consumeChallenge: typeof consumeTwoFactorChallenge
75
75
  };
76
76
  export declare interface TwoFactorChallengeOptions {
77
77
  ttlSeconds?: number
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.79",
5
+ "version": "0.75.81",
6
6
  "description": "A more simplistic way to authenticate.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -58,18 +58,18 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@stacksjs/bun-router": "^0.1.24",
61
- "@stacksjs/cache": "0.75.79",
62
- "@stacksjs/config": "0.75.79",
63
- "@stacksjs/database": "0.75.79",
64
- "@stacksjs/email": "0.75.79",
65
- "@stacksjs/env": "0.75.79",
66
- "@stacksjs/error-handling": "0.75.79",
67
- "@stacksjs/logging": "0.75.79",
68
- "@stacksjs/orm": "0.75.79",
69
- "@stacksjs/path": "0.75.79",
70
- "@stacksjs/router": "0.75.79",
71
- "@stacksjs/security": "0.75.79",
72
- "@stacksjs/storage": "0.75.79",
61
+ "@stacksjs/cache": "0.75.81",
62
+ "@stacksjs/config": "0.75.81",
63
+ "@stacksjs/database": "0.75.81",
64
+ "@stacksjs/email": "0.75.81",
65
+ "@stacksjs/env": "0.75.81",
66
+ "@stacksjs/error-handling": "0.75.81",
67
+ "@stacksjs/logging": "0.75.81",
68
+ "@stacksjs/orm": "0.75.81",
69
+ "@stacksjs/path": "0.75.81",
70
+ "@stacksjs/router": "0.75.81",
71
+ "@stacksjs/security": "0.75.81",
72
+ "@stacksjs/storage": "0.75.81",
73
73
  "@stacksjs/ts-auth": "^0.4.5",
74
74
  "ts-qr-codes": "^0.1.8"
75
75
  },