@better-auth/sso 1.3.26 → 1.3.28
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/src/index.ts +7 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/sso@1.3.
|
|
2
|
+
> @better-auth/sso@1.3.28 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/dist/index.cjs
CHANGED
|
@@ -745,7 +745,7 @@ const sso = (options) => {
|
|
|
745
745
|
redirectURI,
|
|
746
746
|
state: state.state,
|
|
747
747
|
codeVerifier: provider.oidcConfig.pkce ? state.codeVerifier : void 0,
|
|
748
|
-
scopes: ctx.body.scopes || [
|
|
748
|
+
scopes: ctx.body.scopes || provider.oidcConfig.scopes || [
|
|
749
749
|
"openid",
|
|
750
750
|
"email",
|
|
751
751
|
"profile",
|
package/dist/index.mjs
CHANGED
|
@@ -728,7 +728,7 @@ const sso = (options) => {
|
|
|
728
728
|
redirectURI,
|
|
729
729
|
state: state.state,
|
|
730
730
|
codeVerifier: provider.oidcConfig.pkce ? state.codeVerifier : void 0,
|
|
731
|
-
scopes: ctx.body.scopes || [
|
|
731
|
+
scopes: ctx.body.scopes || provider.oidcConfig.scopes || [
|
|
732
732
|
"openid",
|
|
733
733
|
"email",
|
|
734
734
|
"profile",
|
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.28",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"keywords": [
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@better-fetch/fetch": "
|
|
47
|
+
"@better-fetch/fetch": "1.1.18",
|
|
48
48
|
"fast-xml-parser": "^5.2.5",
|
|
49
49
|
"jose": "^6.1.0",
|
|
50
50
|
"oauth2-mock-server": "^7.2.1",
|
|
@@ -58,10 +58,10 @@
|
|
|
58
58
|
"body-parser": "^2.2.0",
|
|
59
59
|
"express": "^5.1.0",
|
|
60
60
|
"unbuild": "3.6.1",
|
|
61
|
-
"better-auth": "^1.3.
|
|
61
|
+
"better-auth": "^1.3.28"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"better-auth": "1.3.
|
|
64
|
+
"better-auth": "1.3.28"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
67
|
"test": "vitest",
|
package/src/index.ts
CHANGED
|
@@ -1139,12 +1139,13 @@ export const sso = (options?: SSOOptions) => {
|
|
|
1139
1139
|
codeVerifier: provider.oidcConfig.pkce
|
|
1140
1140
|
? state.codeVerifier
|
|
1141
1141
|
: undefined,
|
|
1142
|
-
scopes: ctx.body.scopes ||
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1142
|
+
scopes: ctx.body.scopes ||
|
|
1143
|
+
provider.oidcConfig.scopes || [
|
|
1144
|
+
"openid",
|
|
1145
|
+
"email",
|
|
1146
|
+
"profile",
|
|
1147
|
+
"offline_access",
|
|
1148
|
+
],
|
|
1148
1149
|
authorizationEndpoint: provider.oidcConfig.authorizationEndpoint!,
|
|
1149
1150
|
});
|
|
1150
1151
|
return ctx.json({
|