@objectstack/plugin-auth 3.2.9 → 3.3.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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +18 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +5 -5
- package/src/auth-plugin.test.ts +4 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @objectstack/plugin-auth@3.
|
|
2
|
+
> @objectstack/plugin-auth@3.3.1 build /home/runner/work/spec/spec/packages/plugins/plugin-auth
|
|
3
3
|
> tsup --config ../../../tsup.config.ts
|
|
4
4
|
|
|
5
5
|
▲ [WARNING] The condition "types" here will never be used as it comes after both "import" and "require" [package.json]
|
|
@@ -66,13 +66,13 @@
|
|
|
66
66
|
╵ [32m~~~~~~~~~[0m
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
[32mESM[39m [1mdist/index.mjs [22m[32m42.00 KB[39m
|
|
70
|
-
[32mESM[39m [1mdist/index.mjs.map [22m[32m93.72 KB[39m
|
|
71
|
-
[32mESM[39m ⚡️ Build success in 118ms
|
|
72
69
|
[32mCJS[39m [1mdist/index.js [22m[32m45.49 KB[39m
|
|
73
70
|
[32mCJS[39m [1mdist/index.js.map [22m[32m94.25 KB[39m
|
|
74
|
-
[32mCJS[39m ⚡️ Build success in
|
|
71
|
+
[32mCJS[39m ⚡️ Build success in 82ms
|
|
72
|
+
[32mESM[39m [1mdist/index.mjs [22m[32m42.00 KB[39m
|
|
73
|
+
[32mESM[39m [1mdist/index.mjs.map [22m[32m93.72 KB[39m
|
|
74
|
+
[32mESM[39m ⚡️ Build success in 83ms
|
|
75
75
|
[34mDTS[39m Build start
|
|
76
|
-
[32mDTS[39m ⚡️ Build success in
|
|
77
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[
|
|
78
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
76
|
+
[32mDTS[39m ⚡️ Build success in 9324ms
|
|
77
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m868.05 KB[39m
|
|
78
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m868.05 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @objectstack/spec@3.3.1
|
|
8
|
+
- @objectstack/core@3.3.1
|
|
9
|
+
|
|
10
|
+
## 3.3.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 814a6c4: sql driver
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- @objectstack/spec@3.3.0
|
|
19
|
+
- @objectstack/core@3.3.0
|
|
20
|
+
|
|
3
21
|
## 3.2.9
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -241,7 +241,7 @@ declare class AuthManager {
|
|
|
241
241
|
callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
242
242
|
newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
243
243
|
errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
244
|
-
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
|
|
244
|
+
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
245
245
|
disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
246
246
|
idToken: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
247
247
|
token: better_auth.ZodString;
|
|
@@ -268,7 +268,7 @@ declare class AuthManager {
|
|
|
268
268
|
callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
269
269
|
newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
270
270
|
errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
271
|
-
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
|
|
271
|
+
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
272
272
|
disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
273
273
|
idToken: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
274
274
|
token: better_auth.ZodString;
|
|
@@ -1847,7 +1847,7 @@ declare class AuthManager {
|
|
|
1847
1847
|
requireHeaders: true;
|
|
1848
1848
|
body: better_auth.ZodObject<{
|
|
1849
1849
|
callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
1850
|
-
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
|
|
1850
|
+
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
1851
1851
|
idToken: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
1852
1852
|
token: better_auth.ZodString;
|
|
1853
1853
|
nonce: better_auth.ZodOptional<better_auth.ZodString>;
|
package/dist/index.d.ts
CHANGED
|
@@ -241,7 +241,7 @@ declare class AuthManager {
|
|
|
241
241
|
callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
242
242
|
newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
243
243
|
errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
244
|
-
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
|
|
244
|
+
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
245
245
|
disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
246
246
|
idToken: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
247
247
|
token: better_auth.ZodString;
|
|
@@ -268,7 +268,7 @@ declare class AuthManager {
|
|
|
268
268
|
callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
269
269
|
newUserCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
270
270
|
errorCallbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
271
|
-
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
|
|
271
|
+
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
272
272
|
disableRedirect: better_auth.ZodOptional<better_auth.ZodBoolean>;
|
|
273
273
|
idToken: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
274
274
|
token: better_auth.ZodString;
|
|
@@ -1847,7 +1847,7 @@ declare class AuthManager {
|
|
|
1847
1847
|
requireHeaders: true;
|
|
1848
1848
|
body: better_auth.ZodObject<{
|
|
1849
1849
|
callbackURL: better_auth.ZodOptional<better_auth.ZodString>;
|
|
1850
|
-
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel", unknown>>;
|
|
1850
|
+
provider: better_auth.ZodType<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown, better_auth.$ZodTypeInternals<(string & {}) | "linear" | "huggingface" | "github" | "apple" | "atlassian" | "cognito" | "discord" | "facebook" | "figma" | "microsoft" | "google" | "slack" | "spotify" | "twitch" | "twitter" | "dropbox" | "kick" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "salesforce" | "vk" | "zoom" | "notion" | "kakao" | "naver" | "line" | "paybin" | "paypal" | "polar" | "railway" | "vercel" | "wechat", unknown>>;
|
|
1851
1851
|
idToken: better_auth.ZodOptional<better_auth.ZodObject<{
|
|
1852
1852
|
token: better_auth.ZodString;
|
|
1853
1853
|
nonce: better_auth.ZodOptional<better_auth.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@objectstack/plugin-auth",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Authentication & Identity Plugin for ObjectStack",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"better-auth": "^1.5.
|
|
18
|
-
"@objectstack/core": "3.
|
|
19
|
-
"@objectstack/spec": "3.
|
|
17
|
+
"better-auth": "^1.5.6",
|
|
18
|
+
"@objectstack/core": "3.3.1",
|
|
19
|
+
"@objectstack/spec": "3.3.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/node": "^25.5.0",
|
|
23
23
|
"typescript": "^5.0.0",
|
|
24
24
|
"vitest": "^4.1.0",
|
|
25
|
-
"@objectstack/cli": "3.
|
|
25
|
+
"@objectstack/cli": "3.3.1"
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "tsup --config ../../../tsup.config.ts",
|
package/src/auth-plugin.test.ts
CHANGED
|
@@ -299,6 +299,7 @@ describe('AuthPlugin', () => {
|
|
|
299
299
|
baseUrl: 'http://localhost:3000',
|
|
300
300
|
});
|
|
301
301
|
mockContext.hook = localHookCapture.hookFn;
|
|
302
|
+
(mockContext.registerService as any).mockClear();
|
|
302
303
|
await localPlugin.init(mockContext);
|
|
303
304
|
|
|
304
305
|
const mockRawApp = { all: vi.fn() };
|
|
@@ -314,7 +315,7 @@ describe('AuthPlugin', () => {
|
|
|
314
315
|
throw new Error(`Service not found: ${name}`);
|
|
315
316
|
});
|
|
316
317
|
|
|
317
|
-
const registeredAuthManager = (mockContext.registerService as any).mock.calls
|
|
318
|
+
const registeredAuthManager = (mockContext.registerService as any).mock.calls[0][1];
|
|
318
319
|
const setRuntimeSpy = vi.spyOn(registeredAuthManager, 'setRuntimeBaseUrl');
|
|
319
320
|
|
|
320
321
|
await localPlugin.start(mockContext);
|
|
@@ -330,6 +331,7 @@ describe('AuthPlugin', () => {
|
|
|
330
331
|
secret: 'test-secret-at-least-32-chars-long',
|
|
331
332
|
});
|
|
332
333
|
mockContext.hook = localHookCapture.hookFn;
|
|
334
|
+
(mockContext.registerService as any).mockClear();
|
|
333
335
|
await localPlugin.init(mockContext);
|
|
334
336
|
|
|
335
337
|
const mockRawApp = { all: vi.fn() };
|
|
@@ -345,7 +347,7 @@ describe('AuthPlugin', () => {
|
|
|
345
347
|
throw new Error(`Service not found: ${name}`);
|
|
346
348
|
});
|
|
347
349
|
|
|
348
|
-
const registeredAuthManager = (mockContext.registerService as any).mock.calls
|
|
350
|
+
const registeredAuthManager = (mockContext.registerService as any).mock.calls[0][1];
|
|
349
351
|
const setRuntimeSpy = vi.spyOn(registeredAuthManager, 'setRuntimeBaseUrl');
|
|
350
352
|
|
|
351
353
|
await localPlugin.start(mockContext);
|