@stacksjs/auth 0.75.80 → 0.75.82
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/dist/email-verification.d.ts +4 -4
- package/dist/middleware.d.ts +1 -1
- package/dist/rbac.d.ts +2 -2
- package/dist/session-auth.d.ts +6 -6
- package/dist/two-factor.d.ts +10 -10
- package/package.json +13 -13
|
@@ -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:
|
|
22
|
-
send:
|
|
23
|
-
verify:
|
|
24
|
-
resend:
|
|
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
|
package/dist/middleware.d.ts
CHANGED
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:
|
|
142
|
-
flushCache:
|
|
141
|
+
setStore: typeof setRbacStore;
|
|
142
|
+
flushCache: typeof flushRbacCache;
|
|
143
143
|
createRole: typeof createRole;
|
|
144
144
|
findRole: typeof findRole;
|
|
145
145
|
deleteRole: typeof deleteRole;
|
package/dist/session-auth.d.ts
CHANGED
|
@@ -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:
|
|
75
|
-
logout:
|
|
76
|
-
destroyAll:
|
|
77
|
-
user:
|
|
78
|
-
check:
|
|
79
|
-
refresh:
|
|
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>>>;
|
package/dist/two-factor.d.ts
CHANGED
|
@@ -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:
|
|
66
|
-
getState:
|
|
67
|
-
generateSetup:
|
|
68
|
-
stashPendingSecret:
|
|
69
|
-
consumePendingSecret:
|
|
70
|
-
enable:
|
|
71
|
-
disable:
|
|
72
|
-
verifyLoginCode:
|
|
73
|
-
createChallenge:
|
|
74
|
-
consumeChallenge:
|
|
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.
|
|
5
|
+
"version": "0.75.82",
|
|
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.
|
|
62
|
-
"@stacksjs/config": "0.75.
|
|
63
|
-
"@stacksjs/database": "0.75.
|
|
64
|
-
"@stacksjs/email": "0.75.
|
|
65
|
-
"@stacksjs/env": "0.75.
|
|
66
|
-
"@stacksjs/error-handling": "0.75.
|
|
67
|
-
"@stacksjs/logging": "0.75.
|
|
68
|
-
"@stacksjs/orm": "0.75.
|
|
69
|
-
"@stacksjs/path": "0.75.
|
|
70
|
-
"@stacksjs/router": "0.75.
|
|
71
|
-
"@stacksjs/security": "0.75.
|
|
72
|
-
"@stacksjs/storage": "0.75.
|
|
61
|
+
"@stacksjs/cache": "0.75.82",
|
|
62
|
+
"@stacksjs/config": "0.75.82",
|
|
63
|
+
"@stacksjs/database": "0.75.82",
|
|
64
|
+
"@stacksjs/email": "0.75.82",
|
|
65
|
+
"@stacksjs/env": "0.75.82",
|
|
66
|
+
"@stacksjs/error-handling": "0.75.82",
|
|
67
|
+
"@stacksjs/logging": "0.75.82",
|
|
68
|
+
"@stacksjs/orm": "0.75.82",
|
|
69
|
+
"@stacksjs/path": "0.75.82",
|
|
70
|
+
"@stacksjs/router": "0.75.82",
|
|
71
|
+
"@stacksjs/security": "0.75.82",
|
|
72
|
+
"@stacksjs/storage": "0.75.82",
|
|
73
73
|
"@stacksjs/ts-auth": "^0.4.5",
|
|
74
74
|
"ts-qr-codes": "^0.1.8"
|
|
75
75
|
},
|