@better-auth/core 1.4.7-beta.4 → 1.4.7
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 +4 -4
- package/dist/social-providers/index.mjs +5 -5
- package/package.json +1 -1
- package/src/social-providers/figma.ts +1 -1
- package/src/social-providers/line.ts +2 -2
- package/src/social-providers/notion.ts +1 -1
- package/src/social-providers/tiktok.ts +1 -2
- package/src/social-providers/vk.ts +1 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @better-auth/core@1.4.7
|
|
2
|
+
> @better-auth/core@1.4.7 build /home/runner/work/better-auth/better-auth/packages/core
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.17.2[22m powered by rolldown [2mv1.0.0-beta.53[22m
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[34mℹ[39m entry: [34msrc/index.ts, src/db/index.ts, src/db/adapter/index.ts, src/async_hooks/index.ts, src/async_hooks/pure.index.ts, src/context/index.ts, src/env/index.ts, src/oauth2/index.ts, src/api/index.ts, src/social-providers/index.ts, src/utils/index.ts, src/error/index.ts[39m
|
|
8
8
|
[34mℹ[39m tsconfig: [34mtsconfig.json[39m
|
|
9
9
|
[34mℹ[39m Build start
|
|
10
|
-
[34mℹ[39m [2mdist/[22m[1msocial-providers/index.mjs[22m [2m 80.
|
|
10
|
+
[34mℹ[39m [2mdist/[22m[1msocial-providers/index.mjs[22m [2m 80.60 kB[22m [2m│ gzip: 10.30 kB[22m
|
|
11
11
|
[34mℹ[39m [2mdist/[22m[1mdb/adapter/index.mjs[22m [2m 38.13 kB[22m [2m│ gzip: 7.79 kB[22m
|
|
12
12
|
[34mℹ[39m [2mdist/[22m[1mdb/index.mjs[22m [2m 1.66 kB[22m [2m│ gzip: 0.54 kB[22m
|
|
13
13
|
[34mℹ[39m [2mdist/[22m[1mapi/index.mjs[22m [2m 1.23 kB[22m [2m│ gzip: 0.48 kB[22m
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
[34mℹ[39m [2mdist/[22m[32m[1masync_hooks/pure.index.d.mts[22m[39m [2m 0.22 kB[22m [2m│ gzip: 0.16 kB[22m
|
|
40
40
|
[34mℹ[39m [2mdist/[22m[32mindex-NeeRjOR2.d.mts[39m [2m218.68 kB[22m [2m│ gzip: 34.40 kB[22m
|
|
41
41
|
[34mℹ[39m [2mdist/[22m[32mindex-BRBu0-5h.d.mts[39m [2m 3.31 kB[22m [2m│ gzip: 1.11 kB[22m
|
|
42
|
-
[34mℹ[39m 32 files, total: 393.
|
|
43
|
-
[32m✔[39m Build complete in [
|
|
42
|
+
[34mℹ[39m 32 files, total: 393.37 kB
|
|
43
|
+
[32m✔[39m Build complete in [32m4944ms[39m
|
|
@@ -616,7 +616,7 @@ const figma = (options) => {
|
|
|
616
616
|
name: profile.handle,
|
|
617
617
|
email: profile.email,
|
|
618
618
|
image: profile.img_url,
|
|
619
|
-
emailVerified:
|
|
619
|
+
emailVerified: false,
|
|
620
620
|
...userMap
|
|
621
621
|
},
|
|
622
622
|
data: profile
|
|
@@ -1143,7 +1143,7 @@ const line = (options) => {
|
|
|
1143
1143
|
});
|
|
1144
1144
|
if (error || !data) return false;
|
|
1145
1145
|
if (data.aud !== options.clientId) return false;
|
|
1146
|
-
if (
|
|
1146
|
+
if (data.nonce && data.nonce !== nonce) return false;
|
|
1147
1147
|
return true;
|
|
1148
1148
|
},
|
|
1149
1149
|
async getUserInfo(token) {
|
|
@@ -1540,7 +1540,7 @@ const notion = (options) => {
|
|
|
1540
1540
|
name: userProfile.name || "Notion User",
|
|
1541
1541
|
email: userProfile.person?.email || null,
|
|
1542
1542
|
image: userProfile.avatar_url,
|
|
1543
|
-
emailVerified:
|
|
1543
|
+
emailVerified: false,
|
|
1544
1544
|
...userMap
|
|
1545
1545
|
},
|
|
1546
1546
|
data: userProfile
|
|
@@ -2207,7 +2207,7 @@ const tiktok = (options) => {
|
|
|
2207
2207
|
id: profile.data.user.open_id,
|
|
2208
2208
|
name: profile.data.user.display_name || profile.data.user.username,
|
|
2209
2209
|
image: profile.data.user.avatar_large_url,
|
|
2210
|
-
emailVerified:
|
|
2210
|
+
emailVerified: false
|
|
2211
2211
|
},
|
|
2212
2212
|
data: profile
|
|
2213
2213
|
};
|
|
@@ -2482,7 +2482,7 @@ const vk = (options) => {
|
|
|
2482
2482
|
last_name: profile.user.last_name,
|
|
2483
2483
|
email: profile.user.email,
|
|
2484
2484
|
image: profile.user.avatar,
|
|
2485
|
-
emailVerified:
|
|
2485
|
+
emailVerified: false,
|
|
2486
2486
|
birthday: profile.user.birthday,
|
|
2487
2487
|
sex: profile.user.sex,
|
|
2488
2488
|
name: `${profile.user.first_name} ${profile.user.last_name}`,
|
package/package.json
CHANGED
|
@@ -118,9 +118,9 @@ export const line = (options: LineOptions) => {
|
|
|
118
118
|
if (error || !data) {
|
|
119
119
|
return false;
|
|
120
120
|
}
|
|
121
|
-
// aud must match clientId; nonce (if provided) must also match
|
|
121
|
+
// aud must match clientId; nonce (if provided) must also match nonce
|
|
122
122
|
if (data.aud !== options.clientId) return false;
|
|
123
|
-
if (
|
|
123
|
+
if (data.nonce && data.nonce !== nonce) return false;
|
|
124
124
|
return true;
|
|
125
125
|
},
|
|
126
126
|
async getUserInfo(token) {
|
|
@@ -97,7 +97,7 @@ export const notion = (options: NotionOptions) => {
|
|
|
97
97
|
name: userProfile.name || "Notion User",
|
|
98
98
|
email: userProfile.person?.email || null,
|
|
99
99
|
image: userProfile.avatar_url,
|
|
100
|
-
emailVerified:
|
|
100
|
+
emailVerified: false,
|
|
101
101
|
...userMap,
|
|
102
102
|
},
|
|
103
103
|
data: userProfile,
|
|
@@ -199,8 +199,7 @@ export const tiktok = (options: TiktokOptions) => {
|
|
|
199
199
|
id: profile.data.user.open_id,
|
|
200
200
|
name: profile.data.user.display_name || profile.data.user.username,
|
|
201
201
|
image: profile.data.user.avatar_large_url,
|
|
202
|
-
|
|
203
|
-
emailVerified: profile.data.user.email ? true : false,
|
|
202
|
+
emailVerified: false,
|
|
204
203
|
},
|
|
205
204
|
data: profile,
|
|
206
205
|
};
|
|
@@ -110,8 +110,7 @@ export const vk = (options: VkOption) => {
|
|
|
110
110
|
last_name: profile.user.last_name,
|
|
111
111
|
email: profile.user.email,
|
|
112
112
|
image: profile.user.avatar,
|
|
113
|
-
|
|
114
|
-
emailVerified: !!profile.user.email,
|
|
113
|
+
emailVerified: false,
|
|
115
114
|
birthday: profile.user.birthday,
|
|
116
115
|
sex: profile.user.sex,
|
|
117
116
|
name: `${profile.user.first_name} ${profile.user.last_name}`,
|