@stacksjs/auth 0.75.528 → 0.75.535
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/cookie-auth.d.ts
CHANGED
package/dist/oauth-consent.d.ts
CHANGED
|
@@ -82,7 +82,5 @@ export declare class OAuthAuthorizationConsentRequestError extends Error {
|
|
|
82
82
|
readonly code: 'invalid_request';
|
|
83
83
|
constructor(message: string);
|
|
84
84
|
}
|
|
85
|
-
declare class NoReusableOAuthConsentError extends Error {
|
|
86
|
-
|
|
87
|
-
}
|
|
85
|
+
declare class NoReusableOAuthConsentError extends Error {}
|
|
88
86
|
export {};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/** RFC 9728 metadata for the exact protected audience, never the inbound Host. */
|
|
2
2
|
export declare function oauthProtectedResourceMetadata(options: OAuthProtectedResourceOptions): {
|
|
3
|
-
resource:
|
|
4
|
-
authorization_servers:
|
|
3
|
+
resource: string
|
|
4
|
+
authorization_servers: string[]
|
|
5
5
|
bearer_methods_supported: string[]
|
|
6
|
+
scopes_supported?: string[]
|
|
7
|
+
resource_documentation?: string
|
|
6
8
|
};
|
|
7
9
|
export declare function oauthProtectedResourceMetadataPath(resource: string): string;
|
|
8
10
|
export declare interface OAuthProtectedResourceOptions {
|
|
@@ -75,7 +75,5 @@ export type OAuthClientCredentialsExchangeResult = AuthorizationCodeResult<Deleg
|
|
|
75
75
|
| typeof invalidClient
|
|
76
76
|
| typeof invalidScope
|
|
77
77
|
| typeof unauthorizedClient;
|
|
78
|
-
declare class InactiveOAuthClientError extends Error {
|
|
79
|
-
|
|
80
|
-
}
|
|
78
|
+
declare class InactiveOAuthClientError extends Error {}
|
|
81
79
|
export {};
|
package/dist/passkeys.d.ts
CHANGED
|
@@ -8,6 +8,4 @@ export declare function listPasskeys(userId: number): Promise<{ id: string, devi
|
|
|
8
8
|
/** Serialize removals per account so two simultaneous deletes cannot remove the last way in. */
|
|
9
9
|
export declare function removePasskey(userId: number, credentialId: string, hasAlternativeSignIn?: (user: Record<string, unknown>) => boolean | Promise<boolean>): Promise<boolean>;
|
|
10
10
|
export declare interface PasskeyRelyingParty { origin: string, name: string }
|
|
11
|
-
export declare class PasskeyError extends Error {
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
export declare class PasskeyError extends Error {}
|
package/dist/rbac.d.ts
CHANGED
|
@@ -146,15 +146,12 @@ export declare function withRbac<T extends UserModel | { id: number }>(user: T):
|
|
|
146
146
|
export declare const Rbac: {
|
|
147
147
|
setStore: typeof setRbacStore;
|
|
148
148
|
flushCache: typeof flushRbacCache;
|
|
149
|
-
createRole: typeof createRole;
|
|
150
149
|
findRole: typeof findRole;
|
|
151
150
|
deleteRole: typeof deleteRole;
|
|
152
151
|
getAllRoles: typeof getAllRoles;
|
|
153
|
-
createPermission: typeof createPermission;
|
|
154
152
|
findPermission: typeof findPermission;
|
|
155
153
|
deletePermission: typeof deletePermission;
|
|
156
154
|
getAllPermissions: typeof getAllPermissions;
|
|
157
|
-
getUserRoles: typeof getUserRoles;
|
|
158
155
|
assignRole: typeof assignRole;
|
|
159
156
|
removeRole: typeof removeRole;
|
|
160
157
|
removeAllRoles: typeof removeAllRoles;
|
|
@@ -163,7 +160,6 @@ export declare const Rbac: {
|
|
|
163
160
|
hasFreshRole: typeof hasFreshRole;
|
|
164
161
|
hasAnyRole: typeof hasAnyRole;
|
|
165
162
|
hasAllRoles: typeof hasAllRoles;
|
|
166
|
-
getUserPermissions: typeof getUserPermissions;
|
|
167
163
|
givePermission: typeof givePermission;
|
|
168
164
|
revokePermission: typeof revokePermission;
|
|
169
165
|
revokeAllPermissions: typeof revokeAllPermissions;
|
|
@@ -171,11 +167,9 @@ export declare const Rbac: {
|
|
|
171
167
|
hasPermission: typeof hasPermission;
|
|
172
168
|
hasAnyPermission: typeof hasAnyPermission;
|
|
173
169
|
hasAllPermissions: typeof hasAllPermissions;
|
|
174
|
-
getRolePermissions: typeof getRolePermissions;
|
|
175
170
|
givePermissionToRole: typeof givePermissionToRole;
|
|
176
171
|
revokePermissionFromRole: typeof revokePermissionFromRole;
|
|
177
|
-
syncRolePermissions: typeof syncRolePermissions
|
|
178
|
-
withRbac: typeof withRbac
|
|
172
|
+
syncRolePermissions: typeof syncRolePermissions
|
|
179
173
|
};
|
|
180
174
|
export declare interface RoleRecord {
|
|
181
175
|
id: 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.535",
|
|
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.
|
|
63
|
-
"@stacksjs/config": "0.75.
|
|
64
|
-
"@stacksjs/database": "0.75.
|
|
65
|
-
"@stacksjs/email": "0.75.
|
|
66
|
-
"@stacksjs/env": "0.75.
|
|
67
|
-
"@stacksjs/error-handling": "0.75.
|
|
68
|
-
"@stacksjs/logging": "0.75.
|
|
69
|
-
"@stacksjs/orm": "0.75.
|
|
70
|
-
"@stacksjs/path": "0.75.
|
|
71
|
-
"@stacksjs/router": "0.75.
|
|
72
|
-
"@stacksjs/security": "0.75.
|
|
73
|
-
"@stacksjs/socials": "0.75.
|
|
74
|
-
"@stacksjs/storage": "0.75.
|
|
62
|
+
"@stacksjs/cache": "0.75.535",
|
|
63
|
+
"@stacksjs/config": "0.75.535",
|
|
64
|
+
"@stacksjs/database": "0.75.535",
|
|
65
|
+
"@stacksjs/email": "0.75.535",
|
|
66
|
+
"@stacksjs/env": "0.75.535",
|
|
67
|
+
"@stacksjs/error-handling": "0.75.535",
|
|
68
|
+
"@stacksjs/logging": "0.75.535",
|
|
69
|
+
"@stacksjs/orm": "0.75.535",
|
|
70
|
+
"@stacksjs/path": "0.75.535",
|
|
71
|
+
"@stacksjs/router": "0.75.535",
|
|
72
|
+
"@stacksjs/security": "0.75.535",
|
|
73
|
+
"@stacksjs/socials": "0.75.535",
|
|
74
|
+
"@stacksjs/storage": "0.75.535",
|
|
75
75
|
"@stacksjs/ts-auth": "^0.4.7",
|
|
76
76
|
"ts-qr-codes": "^0.1.8"
|
|
77
77
|
},
|