@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @better-auth/core@1.4.7-beta.4 build /home/runner/work/better-auth/better-auth/packages/core
2
+ > @better-auth/core@1.4.7 build /home/runner/work/better-auth/better-auth/packages/core
3
3
  > tsdown
4
4
 
5
5
  ℹ tsdown v0.17.2 powered by rolldown v1.0.0-beta.53
@@ -7,7 +7,7 @@
7
7
  ℹ entry: src/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
8
8
  ℹ tsconfig: tsconfig.json
9
9
  ℹ Build start
10
- ℹ dist/social-providers/index.mjs  80.69 kB │ gzip: 10.32 kB
10
+ ℹ dist/social-providers/index.mjs  80.60 kB │ gzip: 10.30 kB
11
11
  ℹ dist/db/adapter/index.mjs  38.13 kB │ gzip: 7.79 kB
12
12
  ℹ dist/db/index.mjs  1.66 kB │ gzip: 0.54 kB
13
13
  ℹ dist/api/index.mjs  1.23 kB │ gzip: 0.48 kB
@@ -39,5 +39,5 @@
39
39
  ℹ dist/async_hooks/pure.index.d.mts  0.22 kB │ gzip: 0.16 kB
40
40
  ℹ dist/index-NeeRjOR2.d.mts 218.68 kB │ gzip: 34.40 kB
41
41
  ℹ dist/index-BRBu0-5h.d.mts  3.31 kB │ gzip: 1.11 kB
42
- ℹ 32 files, total: 393.46 kB
43
- ✔ Build complete in 5440ms
42
+ ℹ 32 files, total: 393.37 kB
43
+ ✔ Build complete in 4944ms
@@ -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: !!profile.email,
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 (nonce && data.nonce && data.nonce !== nonce) return false;
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: !!userProfile.person?.email,
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: profile.data.user.email ? true : false
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: !!profile.user.email,
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@better-auth/core",
3
- "version": "1.4.7-beta.4",
3
+ "version": "1.4.7",
4
4
  "description": "The most comprehensive authentication framework for TypeScript.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -100,7 +100,7 @@ export const figma = (options: FigmaOptions) => {
100
100
  name: profile.handle,
101
101
  email: profile.email,
102
102
  image: profile.img_url,
103
- emailVerified: !!profile.email,
103
+ emailVerified: false,
104
104
  ...userMap,
105
105
  },
106
106
  data: profile,
@@ -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 (nonce && data.nonce && data.nonce !== nonce) return false;
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: !!userProfile.person?.email,
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
- /** @note Tiktok does not provide emailVerified or even email*/
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
- /** @note VK does not provide emailVerified*/
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}`,