@better-auth/sso 1.3.4-beta.3 → 1.3.5-beta.2
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 +1 -1
- package/CHANGELOG.md +20 -0
- package/package.json +10 -4
- package/src/index.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/sso@1.3.
|
|
2
|
+
> @better-auth/sso@1.3.5-beta.2 build /home/runner/work/better-auth/better-auth/packages/sso
|
|
3
3
|
> unbuild
|
|
4
4
|
|
|
5
5
|
[info] Automatically detected entries: src/index, src/client [esm] [cjs] [dts]
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# @better-auth/sso
|
|
2
|
+
|
|
3
|
+
## 1.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2bd2fa9: Added support for listing organization members with pagination, sorting, and filtering, and improved client inference for additional organization fields. Also fixed date handling in rate limits and tokens, improved Notion OAuth user extraction, and ensured session is always set in context.
|
|
8
|
+
|
|
9
|
+
Organization
|
|
10
|
+
|
|
11
|
+
- Added listMembers API with pagination, sorting, and filtering.
|
|
12
|
+
- Added membersLimit param to getFullOrganization.
|
|
13
|
+
- Improved client inference for additional fields in organization schemas.
|
|
14
|
+
- Bug Fixes
|
|
15
|
+
- Fixed date handling by casting DB values to Date objects before using date methods.
|
|
16
|
+
- Fixed Notion OAuth to extract user info correctly.
|
|
17
|
+
- Ensured session is set in context when reading from cookie cach
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [2bd2fa9]
|
|
20
|
+
- better-auth@1.3.4
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/sso",
|
|
3
3
|
"author": "Bereket Engida",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.5-beta.2",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"openid connect",
|
|
17
17
|
"single sign on"
|
|
18
18
|
],
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public"
|
|
21
|
+
},
|
|
19
22
|
"module": "dist/index.mjs",
|
|
20
23
|
"description": "SSO plugin for Better Auth",
|
|
21
24
|
"exports": {
|
|
@@ -40,20 +43,23 @@
|
|
|
40
43
|
]
|
|
41
44
|
}
|
|
42
45
|
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"zod": "3.25.0 || ^4.0.0"
|
|
48
|
+
},
|
|
43
49
|
"dependencies": {
|
|
44
50
|
"@better-fetch/fetch": "^1.1.18",
|
|
45
51
|
"fast-xml-parser": "^5.2.5",
|
|
46
52
|
"jose": "^5.9.6",
|
|
47
53
|
"oauth2-mock-server": "^7.2.0",
|
|
48
54
|
"samlify": "^2.10.0",
|
|
49
|
-
"
|
|
50
|
-
"better-auth": "^1.3.4-beta.3"
|
|
55
|
+
"better-auth": "^1.3.5-beta.2"
|
|
51
56
|
},
|
|
52
57
|
"devDependencies": {
|
|
53
58
|
"@types/body-parser": "^1.19.6",
|
|
54
59
|
"@types/express": "^5.0.3",
|
|
55
60
|
"better-call": "^1.0.12",
|
|
56
|
-
"vitest": "^1.6.0"
|
|
61
|
+
"vitest": "^1.6.0",
|
|
62
|
+
"zod": "^4.0.0"
|
|
57
63
|
},
|
|
58
64
|
"scripts": {
|
|
59
65
|
"test": "vitest",
|
package/src/index.ts
CHANGED
|
@@ -563,7 +563,7 @@ export const sso = (options?: SSOOptions) => {
|
|
|
563
563
|
const limit =
|
|
564
564
|
typeof options?.providersLimit === "function"
|
|
565
565
|
? await options.providersLimit(user)
|
|
566
|
-
: options?.providersLimit ?? 10;
|
|
566
|
+
: (options?.providersLimit ?? 10);
|
|
567
567
|
|
|
568
568
|
if (!limit) {
|
|
569
569
|
throw new APIError("FORBIDDEN", {
|