better-auth 1.2.6-beta.7 → 1.2.7-beta.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.
Files changed (273) hide show
  1. package/dist/adapters/drizzle-adapter/index.cjs +186 -249
  2. package/dist/adapters/drizzle-adapter/index.d.cts +11 -49
  3. package/dist/adapters/drizzle-adapter/index.d.mts +11 -49
  4. package/dist/adapters/drizzle-adapter/index.d.ts +11 -49
  5. package/dist/adapters/drizzle-adapter/index.mjs +186 -249
  6. package/dist/adapters/index.cjs +26 -0
  7. package/dist/adapters/index.d.cts +17 -0
  8. package/dist/adapters/index.d.mts +17 -0
  9. package/dist/adapters/index.d.ts +17 -0
  10. package/dist/adapters/index.mjs +20 -0
  11. package/dist/adapters/kysely-adapter/index.cjs +7 -7
  12. package/dist/adapters/kysely-adapter/index.d.cts +17 -49
  13. package/dist/adapters/kysely-adapter/index.d.mts +17 -49
  14. package/dist/adapters/kysely-adapter/index.d.ts +17 -49
  15. package/dist/adapters/kysely-adapter/index.mjs +8 -8
  16. package/dist/adapters/memory-adapter/index.cjs +7 -8
  17. package/dist/adapters/memory-adapter/index.d.cts +9 -49
  18. package/dist/adapters/memory-adapter/index.d.mts +9 -49
  19. package/dist/adapters/memory-adapter/index.d.ts +9 -49
  20. package/dist/adapters/memory-adapter/index.mjs +8 -9
  21. package/dist/adapters/mongodb-adapter/index.cjs +2 -2
  22. package/dist/adapters/mongodb-adapter/index.d.cts +4 -4
  23. package/dist/adapters/mongodb-adapter/index.d.mts +4 -4
  24. package/dist/adapters/mongodb-adapter/index.d.ts +4 -4
  25. package/dist/adapters/mongodb-adapter/index.mjs +3 -3
  26. package/dist/adapters/prisma-adapter/index.cjs +130 -203
  27. package/dist/adapters/prisma-adapter/index.d.cts +17 -49
  28. package/dist/adapters/prisma-adapter/index.d.mts +17 -49
  29. package/dist/adapters/prisma-adapter/index.d.ts +17 -49
  30. package/dist/adapters/prisma-adapter/index.mjs +131 -204
  31. package/dist/adapters/test.cjs +710 -377
  32. package/dist/adapters/test.d.cts +64 -5
  33. package/dist/adapters/test.d.mts +64 -5
  34. package/dist/adapters/test.d.ts +64 -5
  35. package/dist/adapters/test.mjs +712 -380
  36. package/dist/api/index.cjs +61 -25
  37. package/dist/api/index.d.cts +3 -3
  38. package/dist/api/index.d.mts +3 -3
  39. package/dist/api/index.d.ts +3 -3
  40. package/dist/api/index.mjs +63 -27
  41. package/dist/client/index.d.cts +3 -3
  42. package/dist/client/index.d.mts +3 -3
  43. package/dist/client/index.d.ts +3 -3
  44. package/dist/client/plugins/index.cjs +13 -15
  45. package/dist/client/plugins/index.d.cts +80 -19
  46. package/dist/client/plugins/index.d.mts +80 -19
  47. package/dist/client/plugins/index.d.ts +80 -19
  48. package/dist/client/plugins/index.mjs +13 -16
  49. package/dist/client/react/index.cjs +4 -4
  50. package/dist/client/react/index.d.cts +3 -3
  51. package/dist/client/react/index.d.mts +3 -3
  52. package/dist/client/react/index.d.ts +3 -3
  53. package/dist/client/solid/index.d.cts +3 -3
  54. package/dist/client/solid/index.d.mts +3 -3
  55. package/dist/client/solid/index.d.ts +3 -3
  56. package/dist/client/svelte/index.d.cts +3 -3
  57. package/dist/client/svelte/index.d.mts +3 -3
  58. package/dist/client/svelte/index.d.ts +3 -3
  59. package/dist/client/vue/index.d.cts +3 -3
  60. package/dist/client/vue/index.d.mts +3 -3
  61. package/dist/client/vue/index.d.ts +3 -3
  62. package/dist/cookies/index.cjs +13 -2
  63. package/dist/cookies/index.d.cts +3 -3
  64. package/dist/cookies/index.d.mts +3 -3
  65. package/dist/cookies/index.d.ts +3 -3
  66. package/dist/cookies/index.mjs +13 -2
  67. package/dist/db/index.cjs +6 -5
  68. package/dist/db/index.d.cts +4 -4
  69. package/dist/db/index.d.mts +4 -4
  70. package/dist/db/index.d.ts +4 -4
  71. package/dist/db/index.mjs +7 -6
  72. package/dist/index.cjs +11 -7
  73. package/dist/index.d.cts +4 -4
  74. package/dist/index.d.mts +4 -4
  75. package/dist/index.d.ts +4 -4
  76. package/dist/index.mjs +14 -10
  77. package/dist/integrations/next-js.cjs +4 -5
  78. package/dist/integrations/next-js.d.cts +3 -3
  79. package/dist/integrations/next-js.d.mts +3 -3
  80. package/dist/integrations/next-js.d.ts +3 -3
  81. package/dist/integrations/next-js.mjs +5 -6
  82. package/dist/integrations/node.d.cts +3 -3
  83. package/dist/integrations/node.d.mts +3 -3
  84. package/dist/integrations/node.d.ts +3 -3
  85. package/dist/integrations/react-start.cjs +5 -6
  86. package/dist/integrations/react-start.d.cts +3 -3
  87. package/dist/integrations/react-start.d.mts +3 -3
  88. package/dist/integrations/react-start.d.ts +3 -3
  89. package/dist/integrations/react-start.mjs +6 -7
  90. package/dist/integrations/svelte-kit.d.cts +3 -3
  91. package/dist/integrations/svelte-kit.d.mts +3 -3
  92. package/dist/integrations/svelte-kit.d.ts +3 -3
  93. package/dist/oauth2/index.d.cts +5 -5
  94. package/dist/oauth2/index.d.mts +5 -5
  95. package/dist/oauth2/index.d.ts +5 -5
  96. package/dist/plugins/access/index.d.cts +1 -1
  97. package/dist/plugins/access/index.d.mts +1 -1
  98. package/dist/plugins/access/index.d.ts +1 -1
  99. package/dist/plugins/admin/access/index.d.cts +1 -1
  100. package/dist/plugins/admin/access/index.d.mts +1 -1
  101. package/dist/plugins/admin/access/index.d.ts +1 -1
  102. package/dist/plugins/admin/index.cjs +4 -4
  103. package/dist/plugins/admin/index.d.cts +74 -14
  104. package/dist/plugins/admin/index.d.mts +74 -14
  105. package/dist/plugins/admin/index.d.ts +74 -14
  106. package/dist/plugins/admin/index.mjs +5 -5
  107. package/dist/plugins/anonymous/index.cjs +4 -5
  108. package/dist/plugins/anonymous/index.d.cts +3 -3
  109. package/dist/plugins/anonymous/index.d.mts +3 -3
  110. package/dist/plugins/anonymous/index.d.ts +3 -3
  111. package/dist/plugins/anonymous/index.mjs +5 -6
  112. package/dist/plugins/bearer/index.cjs +2 -2
  113. package/dist/plugins/bearer/index.d.cts +3 -3
  114. package/dist/plugins/bearer/index.d.mts +3 -3
  115. package/dist/plugins/bearer/index.d.ts +3 -3
  116. package/dist/plugins/bearer/index.mjs +3 -3
  117. package/dist/plugins/captcha/index.cjs +110 -45
  118. package/dist/plugins/captcha/index.d.cts +26 -6
  119. package/dist/plugins/captcha/index.d.mts +26 -6
  120. package/dist/plugins/captcha/index.d.ts +26 -6
  121. package/dist/plugins/captcha/index.mjs +110 -45
  122. package/dist/plugins/custom-session/index.cjs +24 -5
  123. package/dist/plugins/custom-session/index.d.cts +25 -6
  124. package/dist/plugins/custom-session/index.d.mts +25 -6
  125. package/dist/plugins/custom-session/index.d.ts +25 -6
  126. package/dist/plugins/custom-session/index.mjs +25 -6
  127. package/dist/plugins/email-otp/index.cjs +96 -30
  128. package/dist/plugins/email-otp/index.d.cts +33 -10
  129. package/dist/plugins/email-otp/index.d.mts +33 -10
  130. package/dist/plugins/email-otp/index.d.ts +33 -10
  131. package/dist/plugins/email-otp/index.mjs +97 -31
  132. package/dist/plugins/generic-oauth/index.cjs +81 -20
  133. package/dist/plugins/generic-oauth/index.d.cts +46 -3
  134. package/dist/plugins/generic-oauth/index.d.mts +46 -3
  135. package/dist/plugins/generic-oauth/index.d.ts +46 -3
  136. package/dist/plugins/generic-oauth/index.mjs +82 -21
  137. package/dist/plugins/haveibeenpwned/index.cjs +98 -0
  138. package/dist/plugins/haveibeenpwned/index.d.cts +36 -0
  139. package/dist/plugins/haveibeenpwned/index.d.mts +36 -0
  140. package/dist/plugins/haveibeenpwned/index.d.ts +36 -0
  141. package/dist/plugins/haveibeenpwned/index.mjs +96 -0
  142. package/dist/plugins/index.cjs +583 -19
  143. package/dist/plugins/index.d.cts +7 -5
  144. package/dist/plugins/index.d.mts +7 -5
  145. package/dist/plugins/index.d.ts +7 -5
  146. package/dist/plugins/index.mjs +583 -21
  147. package/dist/plugins/jwt/index.cjs +45 -21
  148. package/dist/plugins/jwt/index.d.cts +52 -6
  149. package/dist/plugins/jwt/index.d.mts +52 -6
  150. package/dist/plugins/jwt/index.d.ts +52 -6
  151. package/dist/plugins/jwt/index.mjs +46 -22
  152. package/dist/plugins/magic-link/index.cjs +3 -3
  153. package/dist/plugins/magic-link/index.mjs +4 -4
  154. package/dist/plugins/multi-session/index.cjs +3 -3
  155. package/dist/plugins/multi-session/index.d.cts +3 -3
  156. package/dist/plugins/multi-session/index.d.mts +3 -3
  157. package/dist/plugins/multi-session/index.d.ts +3 -3
  158. package/dist/plugins/multi-session/index.mjs +4 -4
  159. package/dist/plugins/oauth-proxy/index.cjs +4 -4
  160. package/dist/plugins/oauth-proxy/index.d.cts +3 -3
  161. package/dist/plugins/oauth-proxy/index.d.mts +3 -3
  162. package/dist/plugins/oauth-proxy/index.d.ts +3 -3
  163. package/dist/plugins/oauth-proxy/index.mjs +5 -5
  164. package/dist/plugins/oidc-provider/index.cjs +227 -8
  165. package/dist/plugins/oidc-provider/index.d.cts +215 -3
  166. package/dist/plugins/oidc-provider/index.d.mts +215 -3
  167. package/dist/plugins/oidc-provider/index.d.ts +215 -3
  168. package/dist/plugins/oidc-provider/index.mjs +228 -9
  169. package/dist/plugins/one-tap/index.cjs +5 -5
  170. package/dist/plugins/one-tap/index.mjs +6 -6
  171. package/dist/plugins/one-time-token/index.cjs +119 -0
  172. package/dist/plugins/one-time-token/index.d.cts +134 -0
  173. package/dist/plugins/one-time-token/index.d.mts +134 -0
  174. package/dist/plugins/one-time-token/index.d.ts +134 -0
  175. package/dist/plugins/one-time-token/index.mjs +117 -0
  176. package/dist/plugins/open-api/index.cjs +3 -3
  177. package/dist/plugins/open-api/index.d.cts +3 -3
  178. package/dist/plugins/open-api/index.d.mts +3 -3
  179. package/dist/plugins/open-api/index.d.ts +3 -3
  180. package/dist/plugins/open-api/index.mjs +4 -4
  181. package/dist/plugins/organization/access/index.d.cts +1 -1
  182. package/dist/plugins/organization/access/index.d.mts +1 -1
  183. package/dist/plugins/organization/access/index.d.ts +1 -1
  184. package/dist/plugins/organization/index.cjs +4 -4
  185. package/dist/plugins/organization/index.d.cts +708 -55
  186. package/dist/plugins/organization/index.d.mts +708 -55
  187. package/dist/plugins/organization/index.d.ts +708 -55
  188. package/dist/plugins/organization/index.mjs +5 -5
  189. package/dist/plugins/passkey/index.cjs +82 -8
  190. package/dist/plugins/passkey/index.d.cts +72 -3
  191. package/dist/plugins/passkey/index.d.mts +72 -3
  192. package/dist/plugins/passkey/index.d.ts +72 -3
  193. package/dist/plugins/passkey/index.mjs +83 -9
  194. package/dist/plugins/phone-number/index.cjs +194 -26
  195. package/dist/plugins/phone-number/index.d.cts +132 -8
  196. package/dist/plugins/phone-number/index.d.mts +132 -8
  197. package/dist/plugins/phone-number/index.d.ts +132 -8
  198. package/dist/plugins/phone-number/index.mjs +195 -27
  199. package/dist/plugins/sso/index.cjs +190 -7
  200. package/dist/plugins/sso/index.d.cts +181 -15
  201. package/dist/plugins/sso/index.d.mts +181 -15
  202. package/dist/plugins/sso/index.d.ts +181 -15
  203. package/dist/plugins/sso/index.mjs +191 -8
  204. package/dist/plugins/two-factor/index.cjs +443 -92
  205. package/dist/plugins/two-factor/index.d.cts +230 -396
  206. package/dist/plugins/two-factor/index.d.mts +230 -396
  207. package/dist/plugins/two-factor/index.d.ts +230 -396
  208. package/dist/plugins/two-factor/index.mjs +431 -80
  209. package/dist/plugins/username/index.cjs +34 -31
  210. package/dist/plugins/username/index.d.cts +15 -12
  211. package/dist/plugins/username/index.d.mts +15 -12
  212. package/dist/plugins/username/index.d.ts +15 -12
  213. package/dist/plugins/username/index.mjs +35 -32
  214. package/dist/shared/better-auth.1DR6suCQ.mjs +307 -0
  215. package/dist/shared/{better-auth.BSsp73pg.cjs → better-auth.B7cZ2juS.cjs} +15 -14
  216. package/dist/shared/{better-auth.bKwabe3I.d.mts → better-auth.B88xucNq.d.mts} +529 -39
  217. package/dist/shared/{better-auth.CApEjVDP.cjs → better-auth.BW8BpneG.cjs} +4 -1
  218. package/dist/shared/{better-auth.BiQsvaIP.d.cts → better-auth.BcU1Kjyq.d.cts} +2051 -518
  219. package/dist/shared/better-auth.BfG24BjZ.cjs +118 -0
  220. package/dist/shared/{better-auth.A3TjrU8G.mjs → better-auth.Bk5IMdhM.mjs} +32 -12
  221. package/dist/shared/{better-auth.D9VnBkRI.mjs → better-auth.Bm9HxIzE.mjs} +47 -24
  222. package/dist/shared/{better-auth.BRf6Iynu.d.ts → better-auth.Bwc-6kOr.d.ts} +1 -1
  223. package/dist/shared/{better-auth.D-oLmHIj.d.mts → better-auth.CA2hFK4N.d.ts} +2051 -518
  224. package/dist/shared/{better-auth.Dmhe30iW.d.mts → better-auth.CGukGrxT.d.cts} +1 -1
  225. package/dist/shared/{better-auth.CsSpq0zL.cjs → better-auth.CHUzBidy.cjs} +46 -23
  226. package/dist/shared/{better-auth.DWRligF8.d.cts → better-auth.CT9J6rD-.d.cts} +539 -7
  227. package/dist/shared/better-auth.CVCo5Z2T.cjs +310 -0
  228. package/dist/shared/{better-auth.D4jH-sJA.mjs → better-auth.CWwVo_61.mjs} +458 -118
  229. package/dist/shared/{better-auth.Bi8FQwDD.d.cts → better-auth.CYegVoq1.d.cts} +1 -1
  230. package/dist/shared/{better-auth.Bi8FQwDD.d.mts → better-auth.CYegVoq1.d.mts} +1 -1
  231. package/dist/shared/{better-auth.Bi8FQwDD.d.ts → better-auth.CYegVoq1.d.ts} +1 -1
  232. package/dist/shared/{better-auth.CepcSj5H.mjs → better-auth.Cc72UxUH.mjs} +1 -2
  233. package/dist/shared/{better-auth.BWp5dztg.d.ts → better-auth.CmN4mlPh.d.ts} +539 -7
  234. package/dist/shared/{better-auth.DH3YjMQH.mjs → better-auth.Cqykj82J.mjs} +1 -1
  235. package/dist/shared/{better-auth.wcdMj2cT.d.mts → better-auth.DIt2e3lu.d.mts} +539 -7
  236. package/dist/shared/{better-auth.BANAxdkL.d.ts → better-auth.DNTAFSt1.d.ts} +529 -39
  237. package/dist/shared/{better-auth.DU2QNVc_.d.ts → better-auth.DQ7OSJbI.d.mts} +2051 -518
  238. package/dist/shared/{better-auth.DLTzKoOS.cjs → better-auth.DSVbLSt7.cjs} +4 -1
  239. package/dist/shared/{better-auth.B2Fw1vhH.d.cts → better-auth.DTiSPWEk.d.cts} +529 -39
  240. package/dist/shared/better-auth.DURsStt9.mjs +116 -0
  241. package/dist/shared/{better-auth.BIjcZ_vt.cjs → better-auth.DYoLD99C.cjs} +31 -11
  242. package/dist/shared/{better-auth.CV1L7TPV.cjs → better-auth.D_ZIX1O8.cjs} +317 -47
  243. package/dist/shared/{better-auth.C5H9XEzZ.cjs → better-auth.DcWKCjjf.cjs} +1 -2
  244. package/dist/shared/{better-auth.BDYXUcLv.cjs → better-auth.Dg0siV5C.cjs} +457 -117
  245. package/dist/shared/better-auth.DjryM8pE.cjs +760 -0
  246. package/dist/shared/{better-auth.DPBQN9Fs.mjs → better-auth.Dn_Ms1Uf.mjs} +318 -48
  247. package/dist/shared/{better-auth.DiG4KL2x.mjs → better-auth.OuYYTHC7.mjs} +4 -1
  248. package/dist/shared/{better-auth.DtC8i3pf.d.cts → better-auth.S1jimRbX.d.mts} +1 -1
  249. package/dist/shared/better-auth.SPmq4a4z.d.mts +344 -0
  250. package/dist/shared/{better-auth.cOCrlspr.mjs → better-auth.bkwPl2G4.mjs} +4 -1
  251. package/dist/shared/better-auth.cp2rC2iM.d.ts +344 -0
  252. package/dist/shared/better-auth.eVy4DZvP.d.cts +344 -0
  253. package/dist/shared/{better-auth.BrOpzmqo.mjs → better-auth.iKoUsdFE.mjs} +15 -14
  254. package/dist/shared/better-auth.rSYJCd3o.mjs +758 -0
  255. package/dist/social-providers/index.cjs +75 -3
  256. package/dist/social-providers/index.d.cts +2 -2
  257. package/dist/social-providers/index.d.mts +2 -2
  258. package/dist/social-providers/index.d.ts +2 -2
  259. package/dist/social-providers/index.mjs +77 -6
  260. package/dist/types/index.d.cts +4 -4
  261. package/dist/types/index.d.mts +4 -4
  262. package/dist/types/index.d.ts +4 -4
  263. package/package.json +42 -5
  264. package/dist/chunks/server.cjs +0 -905
  265. package/dist/chunks/server.mjs +0 -895
  266. package/dist/shared/better-auth.BcoSd9tC.mjs +0 -10
  267. package/dist/shared/better-auth.BnRFp-t0.mjs +0 -405
  268. package/dist/shared/better-auth.C1-vpKly.cjs +0 -12
  269. package/dist/shared/better-auth.ClTSOgiD.mjs +0 -140
  270. package/dist/shared/better-auth.DC8JQbiE.mjs +0 -173
  271. package/dist/shared/better-auth.DWHWPllD.cjs +0 -175
  272. package/dist/shared/better-auth.DqLjzBlO.cjs +0 -408
  273. package/dist/shared/better-auth.m575EIBC.cjs +0 -144
@@ -1,4 +1,4 @@
1
- import { L as LiteralString, b as Prettify } from './better-auth.Bi8FQwDD.mjs';
1
+ import { L as LiteralString, P as Prettify } from './better-auth.CYegVoq1.mjs';
2
2
  import { z } from 'zod';
3
3
  import * as jose from 'jose';
4
4
 
@@ -28,7 +28,19 @@ interface OAuthProvider<T extends Record<string, any> = Record<string, any>> {
28
28
  codeVerifier?: string;
29
29
  deviceId?: string;
30
30
  }) => Promise<OAuth2Tokens>;
31
- getUserInfo: (token: OAuth2Tokens) => Promise<{
31
+ getUserInfo: (token: OAuth2Tokens & {
32
+ /**
33
+ * The user object from the provider
34
+ * This is only available for some providers like Apple
35
+ */
36
+ user?: {
37
+ name?: {
38
+ firstName?: string;
39
+ lastName?: string;
40
+ };
41
+ email?: string;
42
+ };
43
+ }) => Promise<{
32
44
  user: {
33
45
  id: string;
34
46
  name?: string;
@@ -153,6 +165,171 @@ type ProviderOptions<Profile extends Record<string, any> = any> = {
153
165
  * The response mode to use for the authorization code request
154
166
  */
155
167
  responseMode?: "query" | "form_post";
168
+ /**
169
+ * If enabled, the user info will be overridden with the provider user info
170
+ * This is useful if you want to use the provider user info to update the user info
171
+ *
172
+ * @default false
173
+ */
174
+ overrideUserInfoOnSignIn?: boolean;
175
+ };
176
+
177
+ type LoginType = 0 /** Facebook OAuth */ | 1 /** Google OAuth */ | 24 /** Apple OAuth */ | 27 /** Microsoft OAuth */ | 97 /** Mobile device */ | 98 /** RingCentral OAuth */ | 99 /** API user */ | 100 /** Zoom Work email */ | 101; /** Single Sign-On (SSO) */
178
+ type AccountStatus = "pending" | "active" | "inactive";
179
+ type PronounOption = 1 /** Ask the user every time */ | 2 /** Always display */ | 3; /** Do not display */
180
+ interface PhoneNumber {
181
+ /** The country code of the phone number (Example: "+1") */
182
+ code: string;
183
+ /** The country of the phone number (Example: "US") */
184
+ country: string;
185
+ /** The label for the phone number (Example: "Mobile") */
186
+ label: string;
187
+ /** The phone number itself (Example: "800000000") */
188
+ number: string;
189
+ /** Whether the phone number has been verified (Example: true) */
190
+ verified: boolean;
191
+ }
192
+ /**
193
+ * See the full documentation below:
194
+ * https://developers.zoom.us/docs/api/users/#tag/users/GET/users/{userId}
195
+ */
196
+ interface ZoomProfile extends Record<string, any> {
197
+ /** The user's account ID (Example: "q6gBJVO5TzexKYTb_I2rpg") */
198
+ account_id: string;
199
+ /** The user's account number (Example: 10009239) */
200
+ account_number: number;
201
+ /** The user's cluster (Example: "us04") */
202
+ cluster: string;
203
+ /** The user's CMS ID. Only enabled for Kaltura integration (Example: "KDcuGIm1QgePTO8WbOqwIQ") */
204
+ cms_user_id: string;
205
+ /** The user's cost center (Example: "cost center") */
206
+ cost_center: string;
207
+ /** User create time (Example: "2018-10-31T04:32:37Z") */
208
+ created_at: string;
209
+ /** Department (Example: "Developers") */
210
+ dept: string;
211
+ /** User's display name (Example: "Jill Chill") */
212
+ display_name: string;
213
+ /** User's email address (Example: "jchill@example.com") */
214
+ email: string;
215
+ /** User's first name (Example: "Jill") */
216
+ first_name: string;
217
+ /** IDs of the web groups that the user belongs to (Example: ["RSMaSp8sTEGK0_oamiA2_w"]) */
218
+ group_ids: string[];
219
+ /** User ID (Example: "zJKyaiAyTNC-MWjiWC18KQ") */
220
+ id: string;
221
+ /** IM IDs of the groups that the user belongs to (Example: ["t-_-d56CSWG-7BF15LLrOw"]) */
222
+ im_group_ids: string[];
223
+ /** The user's JID (Example: "jchill@example.com") */
224
+ jid: string;
225
+ /** The user's job title (Example: "API Developer") */
226
+ job_title: string;
227
+ /** Default language for the Zoom Web Portal (Example: "en-US") */
228
+ language: string;
229
+ /** User last login client version (Example: "5.9.6.4993(mac)") */
230
+ last_client_version: string;
231
+ /** User last login time (Example: "2021-05-05T20:40:30Z") */
232
+ last_login_time: string;
233
+ /** User's last name (Example: "Chill") */
234
+ last_name: string;
235
+ /** The time zone of the user (Example: "Asia/Shanghai") */
236
+ timezone: string;
237
+ /** User's location (Example: "Paris") */
238
+ location: string;
239
+ /** The user's login method (Example: 101) */
240
+ login_types: LoginType[];
241
+ /** User's personal meeting URL (Example: "example.com") */
242
+ personal_meeting_url: string;
243
+ /** This field has been deprecated and will not be supported in the future.
244
+ * Use the phone_numbers field instead of this field.
245
+ * The user's phone number (Example: "+1 800000000") */
246
+ phone_number?: string;
247
+ /** The URL for user's profile picture (Example: "example.com") */
248
+ pic_url: string;
249
+ /** Personal Meeting ID (PMI) (Example: 3542471135) */
250
+ pmi: number;
251
+ /** Unique identifier of the user's assigned role (Example: "0") */
252
+ role_id: string;
253
+ /** User's role name (Example: "Admin") */
254
+ role_name: string;
255
+ /** Status of user's account (Example: "pending") */
256
+ status: AccountStatus;
257
+ /** Use the personal meeting ID (PMI) for instant meetings (Example: false) */
258
+ use_pmi: boolean;
259
+ /** The time and date when the user was created (Example: "2018-10-31T04:32:37Z") */
260
+ user_created_at: string;
261
+ /** Displays whether user is verified or not (Example: 1) */
262
+ verified: number;
263
+ /** The user's Zoom Workplace plan option (Example: 64) */
264
+ zoom_one_type: number;
265
+ /** The user's company (Example: "Jill") */
266
+ company?: string;
267
+ /** Custom attributes that have been assigned to the user (Example: [{ "key": "cbf_cywdkexrtqc73f97gd4w6g", "name": "A1", "value": "1" }]) */
268
+ custom_attributes?: {
269
+ key: string;
270
+ name: string;
271
+ value: string;
272
+ }[];
273
+ /** The employee's unique ID. This field only returns when SAML single sign-on (SSO) is enabled.
274
+ * The `login_type` value is `101` (SSO) (Example: "HqDyI037Qjili1kNsSIrIg") */
275
+ employee_unique_id?: string;
276
+ /** The manager for the user (Example: "thill@example.com") */
277
+ manager?: string;
278
+ /** The user's country for the company phone number (Example: "US")
279
+ * @deprecated true */
280
+ phone_country?: string;
281
+ /** The phone number's ISO country code (Example: "+1") */
282
+ phone_numbers?: PhoneNumber[];
283
+ /** The user's plan type (Example: "1") */
284
+ plan_united_type?: string;
285
+ /** The user's pronouns (Example: "3123") */
286
+ pronouns?: string;
287
+ /** The user's display pronouns setting (Example: 1) */
288
+ pronouns_option?: PronounOption;
289
+ /** Personal meeting room URL, if the user has one (Example: "example.com") */
290
+ vanity_url?: string;
291
+ }
292
+ interface ZoomOptions extends ProviderOptions<ZoomProfile> {
293
+ pkce?: boolean;
294
+ }
295
+ declare const zoom: (userOptions: ZoomOptions) => {
296
+ id: "zoom";
297
+ name: string;
298
+ createAuthorizationURL: ({ state, redirectURI, codeVerifier }: {
299
+ state: string;
300
+ codeVerifier: string;
301
+ scopes?: string[];
302
+ redirectURI: string;
303
+ display?: string;
304
+ loginHint?: string;
305
+ }) => Promise<URL>;
306
+ validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
307
+ code: string;
308
+ redirectURI: string;
309
+ codeVerifier?: string;
310
+ deviceId?: string;
311
+ }) => Promise<OAuth2Tokens>;
312
+ getUserInfo(token: OAuth2Tokens & {
313
+ user?: {
314
+ name?: {
315
+ firstName?: string;
316
+ lastName?: string;
317
+ };
318
+ email
319
+ /** Whether the phone number has been verified (Example: true) */
320
+ ?: string;
321
+ };
322
+ }): Promise<{
323
+ user: {
324
+ id: string;
325
+ name?: string;
326
+ email?: string | null;
327
+ image?: string;
328
+ emailVerified: boolean;
329
+ [key: string]: any;
330
+ };
331
+ data: any;
332
+ } | null>;
156
333
  };
157
334
 
158
335
  interface VkProfile {
@@ -200,10 +377,18 @@ declare const vk: (options: VkOption) => {
200
377
  deviceId?: string;
201
378
  }) => Promise<OAuth2Tokens>;
202
379
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
203
- getUserInfo(data: OAuth2Tokens): Promise<{
380
+ getUserInfo(data: OAuth2Tokens & {
381
+ user?: {
382
+ name?: {
383
+ firstName?: string;
384
+ lastName?: string;
385
+ };
386
+ email?: string;
387
+ };
388
+ }): Promise<{
204
389
  user: {
205
390
  id: string;
206
- name? /** @note VK does not provide emailVerified*/: string;
391
+ name?: string;
207
392
  email?: string | null;
208
393
  image?: string;
209
394
  emailVerified: boolean;
@@ -251,7 +436,15 @@ declare const roblox: (options: RobloxOptions) => {
251
436
  deviceId?: string;
252
437
  }) => Promise<OAuth2Tokens>;
253
438
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
254
- getUserInfo(token: OAuth2Tokens): Promise<{
439
+ getUserInfo(token: OAuth2Tokens & {
440
+ user?: {
441
+ name?: {
442
+ firstName?: string;
443
+ lastName?: string;
444
+ };
445
+ email?: string;
446
+ };
447
+ }): Promise<{
255
448
  user: {
256
449
  id: string;
257
450
  name?: string;
@@ -294,7 +487,15 @@ declare const reddit: (options: RedditOptions) => {
294
487
  deviceId?: string;
295
488
  }) => Promise<OAuth2Tokens>;
296
489
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
297
- getUserInfo(token: OAuth2Tokens): Promise<{
490
+ getUserInfo(token: OAuth2Tokens & {
491
+ user?: {
492
+ name?: {
493
+ firstName?: string;
494
+ lastName?: string;
495
+ };
496
+ email?: string;
497
+ };
498
+ }): Promise<{
298
499
  user: {
299
500
  id: string;
300
501
  name?: string;
@@ -442,7 +643,15 @@ declare const tiktok: (options: TiktokOptions) => {
442
643
  deviceId?: string;
443
644
  }) => Promise<OAuth2Tokens>;
444
645
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
445
- getUserInfo(token: OAuth2Tokens): Promise<{
646
+ getUserInfo(token: OAuth2Tokens & {
647
+ user?: {
648
+ name?: {
649
+ firstName?: string;
650
+ lastName?: string;
651
+ };
652
+ email?: string;
653
+ };
654
+ }): Promise<{
446
655
  user: {
447
656
  id: string;
448
657
  name?: string;
@@ -521,7 +730,15 @@ declare const gitlab: (options: GitlabOptions) => {
521
730
  deviceId?: string;
522
731
  }) => Promise<OAuth2Tokens>;
523
732
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
524
- getUserInfo(token: OAuth2Tokens): Promise<{
733
+ getUserInfo(token: OAuth2Tokens & {
734
+ user?: {
735
+ name?: {
736
+ firstName?: string;
737
+ lastName?: string;
738
+ };
739
+ email?: string;
740
+ };
741
+ }): Promise<{
525
742
  user: {
526
743
  id: string;
527
744
  name?: string;
@@ -568,7 +785,15 @@ declare const linkedin: (options: LinkedInOptions) => {
568
785
  deviceId?: string;
569
786
  }) => Promise<OAuth2Tokens>;
570
787
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
571
- getUserInfo(token: OAuth2Tokens): Promise<{
788
+ getUserInfo(token: OAuth2Tokens & {
789
+ user?: {
790
+ name?: {
791
+ firstName?: string;
792
+ lastName?: string;
793
+ };
794
+ email?: string;
795
+ };
796
+ }): Promise<{
572
797
  user: {
573
798
  id: string;
574
799
  name?: string;
@@ -619,7 +844,15 @@ declare const kick: (options: KickOptions) => {
619
844
  codeVerifier?: string;
620
845
  deviceId?: string;
621
846
  }): Promise<OAuth2Tokens>;
622
- getUserInfo(token: OAuth2Tokens): Promise<{
847
+ getUserInfo(token: OAuth2Tokens & {
848
+ user?: {
849
+ name?: {
850
+ firstName?: string;
851
+ lastName?: string;
852
+ };
853
+ email?: string;
854
+ };
855
+ }): Promise<{
623
856
  user: {
624
857
  id: string;
625
858
  name?: string;
@@ -666,7 +899,15 @@ declare const dropbox: (options: DropboxOptions) => {
666
899
  deviceId?: string;
667
900
  }) => Promise<OAuth2Tokens>;
668
901
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
669
- getUserInfo(token: OAuth2Tokens): Promise<{
902
+ getUserInfo(token: OAuth2Tokens & {
903
+ user?: {
904
+ name?: {
905
+ firstName?: string;
906
+ lastName?: string;
907
+ };
908
+ email?: string;
909
+ };
910
+ }): Promise<{
670
911
  user: {
671
912
  id: string;
672
913
  name?: string;
@@ -788,7 +1029,15 @@ declare const twitter: (options: TwitterOption) => {
788
1029
  deviceId?: string;
789
1030
  }) => Promise<OAuth2Tokens>;
790
1031
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
791
- getUserInfo(token: OAuth2Tokens): Promise<{
1032
+ getUserInfo(token: OAuth2Tokens & {
1033
+ user?: {
1034
+ name?: {
1035
+ firstName?: string;
1036
+ lastName?: string;
1037
+ };
1038
+ email?: string;
1039
+ };
1040
+ }): Promise<{
792
1041
  user: {
793
1042
  id: string;
794
1043
  name?: string;
@@ -841,7 +1090,15 @@ declare const twitch: (options: TwitchOptions) => {
841
1090
  deviceId?: string;
842
1091
  }) => Promise<OAuth2Tokens>;
843
1092
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
844
- getUserInfo(token: OAuth2Tokens): Promise<{
1093
+ getUserInfo(token: OAuth2Tokens & {
1094
+ user?: {
1095
+ name?: {
1096
+ firstName?: string;
1097
+ lastName?: string;
1098
+ };
1099
+ email?: string;
1100
+ };
1101
+ }): Promise<{
845
1102
  user: {
846
1103
  id: string;
847
1104
  name?: string;
@@ -883,7 +1140,15 @@ declare const spotify: (options: SpotifyOptions) => {
883
1140
  deviceId?: string;
884
1141
  }) => Promise<OAuth2Tokens>;
885
1142
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
886
- getUserInfo(token: OAuth2Tokens): Promise<{
1143
+ getUserInfo(token: OAuth2Tokens & {
1144
+ user?: {
1145
+ name?: {
1146
+ firstName?: string;
1147
+ lastName?: string;
1148
+ };
1149
+ email?: string;
1150
+ };
1151
+ }): Promise<{
887
1152
  user: {
888
1153
  id: string;
889
1154
  name?: string;
@@ -956,7 +1221,15 @@ declare const google: (options: GoogleOptions) => {
956
1221
  }) => Promise<OAuth2Tokens>;
957
1222
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
958
1223
  verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
959
- getUserInfo(token: OAuth2Tokens): Promise<{
1224
+ getUserInfo(token: OAuth2Tokens & {
1225
+ user?: {
1226
+ name?: {
1227
+ firstName?: string;
1228
+ lastName?: string;
1229
+ };
1230
+ email?: string;
1231
+ };
1232
+ }): Promise<{
960
1233
  user: {
961
1234
  id: string;
962
1235
  name?: string;
@@ -1009,7 +1282,15 @@ declare const microsoft: (options: MicrosoftOptions) => {
1009
1282
  codeVerifier?: string;
1010
1283
  deviceId?: string;
1011
1284
  }): Promise<OAuth2Tokens>;
1012
- getUserInfo(token: OAuth2Tokens): Promise<{
1285
+ getUserInfo(token: OAuth2Tokens & {
1286
+ user?: {
1287
+ name?: {
1288
+ firstName?: string;
1289
+ lastName?: string;
1290
+ };
1291
+ email?: string;
1292
+ };
1293
+ }): Promise<{
1013
1294
  user: {
1014
1295
  id: string;
1015
1296
  name?: string;
@@ -1089,7 +1370,15 @@ declare const github: (options: GithubOptions) => {
1089
1370
  deviceId?: string;
1090
1371
  }) => Promise<OAuth2Tokens>;
1091
1372
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1092
- getUserInfo(token: OAuth2Tokens): Promise<{
1373
+ getUserInfo(token: OAuth2Tokens & {
1374
+ user?: {
1375
+ name?: {
1376
+ firstName?: string;
1377
+ lastName?: string;
1378
+ };
1379
+ email?: string;
1380
+ };
1381
+ }): Promise<{
1093
1382
  user: {
1094
1383
  id: string;
1095
1384
  name?: string;
@@ -1124,6 +1413,10 @@ interface FacebookOptions extends ProviderOptions<FacebookProfile> {
1124
1413
  * @default ["id", "name", "email", "picture"]
1125
1414
  */
1126
1415
  fields?: string[];
1416
+ /**
1417
+ * The config id to use when undergoing oauth
1418
+ */
1419
+ configId?: string;
1127
1420
  }
1128
1421
  declare const facebook: (options: FacebookOptions) => {
1129
1422
  id: "facebook";
@@ -1144,7 +1437,15 @@ declare const facebook: (options: FacebookOptions) => {
1144
1437
  }) => Promise<OAuth2Tokens>;
1145
1438
  verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
1146
1439
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1147
- getUserInfo(token: OAuth2Tokens): Promise<{
1440
+ getUserInfo(token: OAuth2Tokens & {
1441
+ user?: {
1442
+ name?: {
1443
+ firstName?: string;
1444
+ lastName?: string;
1445
+ };
1446
+ email?: string;
1447
+ };
1448
+ }): Promise<{
1148
1449
  user: {
1149
1450
  id: string;
1150
1451
  name?: string;
@@ -1248,7 +1549,15 @@ declare const discord: (options: DiscordOptions) => {
1248
1549
  deviceId?: string;
1249
1550
  }) => Promise<OAuth2Tokens>;
1250
1551
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1251
- getUserInfo(token: OAuth2Tokens): Promise<{
1552
+ getUserInfo(token: OAuth2Tokens & {
1553
+ user?: {
1554
+ name?: {
1555
+ firstName?: string;
1556
+ lastName?: string;
1557
+ };
1558
+ email?: string;
1559
+ };
1560
+ }): Promise<{
1252
1561
  user: {
1253
1562
  id: string;
1254
1563
  name?: string;
@@ -1343,7 +1652,15 @@ declare const apple: (options: AppleOptions) => {
1343
1652
  }) => Promise<OAuth2Tokens>;
1344
1653
  verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
1345
1654
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1346
- getUserInfo(token: OAuth2Tokens): Promise<{
1655
+ getUserInfo(token: OAuth2Tokens & {
1656
+ user?: {
1657
+ name?: {
1658
+ firstName?: string;
1659
+ lastName?: string;
1660
+ };
1661
+ email?: string;
1662
+ };
1663
+ }): Promise<{
1347
1664
  user: {
1348
1665
  id: string;
1349
1666
  name?: string;
@@ -1378,7 +1695,15 @@ declare const socialProviders: {
1378
1695
  }) => Promise<OAuth2Tokens>;
1379
1696
  verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
1380
1697
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1381
- getUserInfo(token: OAuth2Tokens): Promise<{
1698
+ getUserInfo(token: OAuth2Tokens & {
1699
+ user?: {
1700
+ name?: {
1701
+ firstName?: string;
1702
+ lastName?: string;
1703
+ };
1704
+ email?: string;
1705
+ };
1706
+ }): Promise<{
1382
1707
  user: {
1383
1708
  id: string;
1384
1709
  name?: string;
@@ -1409,7 +1734,15 @@ declare const socialProviders: {
1409
1734
  deviceId?: string;
1410
1735
  }) => Promise<OAuth2Tokens>;
1411
1736
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1412
- getUserInfo(token: OAuth2Tokens): Promise<{
1737
+ getUserInfo(token: OAuth2Tokens & {
1738
+ user?: {
1739
+ name?: {
1740
+ firstName?: string;
1741
+ lastName?: string;
1742
+ };
1743
+ email?: string;
1744
+ };
1745
+ }): Promise<{
1413
1746
  user: {
1414
1747
  id: string;
1415
1748
  name?: string;
@@ -1441,7 +1774,15 @@ declare const socialProviders: {
1441
1774
  }) => Promise<OAuth2Tokens>;
1442
1775
  verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
1443
1776
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1444
- getUserInfo(token: OAuth2Tokens): Promise<{
1777
+ getUserInfo(token: OAuth2Tokens & {
1778
+ user?: {
1779
+ name?: {
1780
+ firstName?: string;
1781
+ lastName?: string;
1782
+ };
1783
+ email?: string;
1784
+ };
1785
+ }): Promise<{
1445
1786
  user: {
1446
1787
  id: string;
1447
1788
  name?: string;
@@ -1472,7 +1813,15 @@ declare const socialProviders: {
1472
1813
  deviceId?: string;
1473
1814
  }) => Promise<OAuth2Tokens>;
1474
1815
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1475
- getUserInfo(token: OAuth2Tokens): Promise<{
1816
+ getUserInfo(token: OAuth2Tokens & {
1817
+ user?: {
1818
+ name?: {
1819
+ firstName?: string;
1820
+ lastName?: string;
1821
+ };
1822
+ email?: string;
1823
+ };
1824
+ }): Promise<{
1476
1825
  user: {
1477
1826
  id: string;
1478
1827
  name?: string;
@@ -1502,7 +1851,15 @@ declare const socialProviders: {
1502
1851
  codeVerifier?: string;
1503
1852
  deviceId?: string;
1504
1853
  }): Promise<OAuth2Tokens>;
1505
- getUserInfo(token: OAuth2Tokens): Promise<{
1854
+ getUserInfo(token: OAuth2Tokens & {
1855
+ user?: {
1856
+ name?: {
1857
+ firstName?: string;
1858
+ lastName?: string;
1859
+ };
1860
+ email?: string;
1861
+ };
1862
+ }): Promise<{
1506
1863
  user: {
1507
1864
  id: string;
1508
1865
  name?: string;
@@ -1534,7 +1891,15 @@ declare const socialProviders: {
1534
1891
  }) => Promise<OAuth2Tokens>;
1535
1892
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1536
1893
  verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
1537
- getUserInfo(token: OAuth2Tokens): Promise<{
1894
+ getUserInfo(token: OAuth2Tokens & {
1895
+ user?: {
1896
+ name?: {
1897
+ firstName?: string;
1898
+ lastName?: string;
1899
+ };
1900
+ email?: string;
1901
+ };
1902
+ }): Promise<{
1538
1903
  user: {
1539
1904
  id: string;
1540
1905
  name?: string;
@@ -1565,7 +1930,15 @@ declare const socialProviders: {
1565
1930
  deviceId?: string;
1566
1931
  }) => Promise<OAuth2Tokens>;
1567
1932
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1568
- getUserInfo(token: OAuth2Tokens): Promise<{
1933
+ getUserInfo(token: OAuth2Tokens & {
1934
+ user?: {
1935
+ name?: {
1936
+ firstName?: string;
1937
+ lastName?: string;
1938
+ };
1939
+ email?: string;
1940
+ };
1941
+ }): Promise<{
1569
1942
  user: {
1570
1943
  id: string;
1571
1944
  name?: string;
@@ -1596,7 +1969,15 @@ declare const socialProviders: {
1596
1969
  deviceId?: string;
1597
1970
  }) => Promise<OAuth2Tokens>;
1598
1971
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1599
- getUserInfo(token: OAuth2Tokens): Promise<{
1972
+ getUserInfo(token: OAuth2Tokens & {
1973
+ user?: {
1974
+ name?: {
1975
+ firstName?: string;
1976
+ lastName?: string;
1977
+ };
1978
+ email?: string;
1979
+ };
1980
+ }): Promise<{
1600
1981
  user: {
1601
1982
  id: string;
1602
1983
  name?: string;
@@ -1627,7 +2008,15 @@ declare const socialProviders: {
1627
2008
  deviceId?: string;
1628
2009
  }) => Promise<OAuth2Tokens>;
1629
2010
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1630
- getUserInfo(token: OAuth2Tokens): Promise<{
2011
+ getUserInfo(token: OAuth2Tokens & {
2012
+ user?: {
2013
+ name?: {
2014
+ firstName?: string;
2015
+ lastName?: string;
2016
+ };
2017
+ email?: string;
2018
+ };
2019
+ }): Promise<{
1631
2020
  user: {
1632
2021
  id: string;
1633
2022
  name?: string;
@@ -1658,7 +2047,15 @@ declare const socialProviders: {
1658
2047
  deviceId?: string;
1659
2048
  }) => Promise<OAuth2Tokens>;
1660
2049
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1661
- getUserInfo(token: OAuth2Tokens): Promise<{
2050
+ getUserInfo(token: OAuth2Tokens & {
2051
+ user?: {
2052
+ name?: {
2053
+ firstName?: string;
2054
+ lastName?: string;
2055
+ };
2056
+ email?: string;
2057
+ };
2058
+ }): Promise<{
1662
2059
  user: {
1663
2060
  id: string;
1664
2061
  name?: string;
@@ -1688,7 +2085,15 @@ declare const socialProviders: {
1688
2085
  codeVerifier?: string;
1689
2086
  deviceId?: string;
1690
2087
  }): Promise<OAuth2Tokens>;
1691
- getUserInfo(token: OAuth2Tokens): Promise<{
2088
+ getUserInfo(token: OAuth2Tokens & {
2089
+ user?: {
2090
+ name?: {
2091
+ firstName?: string;
2092
+ lastName?: string;
2093
+ };
2094
+ email?: string;
2095
+ };
2096
+ }): Promise<{
1692
2097
  user: {
1693
2098
  id: string;
1694
2099
  name?: string;
@@ -1719,7 +2124,15 @@ declare const socialProviders: {
1719
2124
  deviceId?: string;
1720
2125
  }) => Promise<OAuth2Tokens>;
1721
2126
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1722
- getUserInfo(token: OAuth2Tokens): Promise<{
2127
+ getUserInfo(token: OAuth2Tokens & {
2128
+ user?: {
2129
+ name?: {
2130
+ firstName?: string;
2131
+ lastName?: string;
2132
+ };
2133
+ email?: string;
2134
+ };
2135
+ }): Promise<{
1723
2136
  user: {
1724
2137
  id: string;
1725
2138
  name?: string;
@@ -1750,7 +2163,15 @@ declare const socialProviders: {
1750
2163
  deviceId?: string;
1751
2164
  }) => Promise<OAuth2Tokens>;
1752
2165
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1753
- getUserInfo(token: OAuth2Tokens): Promise<{
2166
+ getUserInfo(token: OAuth2Tokens & {
2167
+ user?: {
2168
+ name?: {
2169
+ firstName?: string;
2170
+ lastName?: string;
2171
+ };
2172
+ email?: string;
2173
+ };
2174
+ }): Promise<{
1754
2175
  user: {
1755
2176
  id: string;
1756
2177
  name?: string;
@@ -1781,7 +2202,15 @@ declare const socialProviders: {
1781
2202
  deviceId?: string;
1782
2203
  }) => Promise<OAuth2Tokens>;
1783
2204
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1784
- getUserInfo(token: OAuth2Tokens): Promise<{
2205
+ getUserInfo(token: OAuth2Tokens & {
2206
+ user?: {
2207
+ name?: {
2208
+ firstName?: string;
2209
+ lastName?: string;
2210
+ };
2211
+ email?: string;
2212
+ };
2213
+ }): Promise<{
1785
2214
  user: {
1786
2215
  id: string;
1787
2216
  name?: string;
@@ -1812,7 +2241,15 @@ declare const socialProviders: {
1812
2241
  deviceId?: string;
1813
2242
  }) => Promise<OAuth2Tokens>;
1814
2243
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1815
- getUserInfo(token: OAuth2Tokens): Promise<{
2244
+ getUserInfo(token: OAuth2Tokens & {
2245
+ user?: {
2246
+ name?: {
2247
+ firstName?: string;
2248
+ lastName?: string;
2249
+ };
2250
+ email?: string;
2251
+ };
2252
+ }): Promise<{
1816
2253
  user: {
1817
2254
  id: string;
1818
2255
  name?: string;
@@ -1843,7 +2280,15 @@ declare const socialProviders: {
1843
2280
  deviceId?: string;
1844
2281
  }) => Promise<OAuth2Tokens>;
1845
2282
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1846
- getUserInfo(token: OAuth2Tokens): Promise<{
2283
+ getUserInfo(token: OAuth2Tokens & {
2284
+ user?: {
2285
+ name?: {
2286
+ firstName?: string;
2287
+ lastName?: string;
2288
+ };
2289
+ email?: string;
2290
+ };
2291
+ }): Promise<{
1847
2292
  user: {
1848
2293
  id: string;
1849
2294
  name?: string;
@@ -1874,7 +2319,15 @@ declare const socialProviders: {
1874
2319
  deviceId?: string;
1875
2320
  }) => Promise<OAuth2Tokens>;
1876
2321
  refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1877
- getUserInfo(data: OAuth2Tokens): Promise<{
2322
+ getUserInfo(data: OAuth2Tokens & {
2323
+ user?: {
2324
+ name?: {
2325
+ firstName?: string;
2326
+ lastName?: string;
2327
+ };
2328
+ email?: string;
2329
+ };
2330
+ }): Promise<{
1878
2331
  user: {
1879
2332
  id: string;
1880
2333
  name?: string;
@@ -1887,9 +2340,46 @@ declare const socialProviders: {
1887
2340
  } | null>;
1888
2341
  options: VkOption;
1889
2342
  };
2343
+ zoom: (userOptions: ZoomOptions) => {
2344
+ id: "zoom";
2345
+ name: string;
2346
+ createAuthorizationURL: ({ state, redirectURI, codeVerifier }: {
2347
+ state: string;
2348
+ codeVerifier: string;
2349
+ scopes?: string[];
2350
+ redirectURI: string;
2351
+ display?: string;
2352
+ loginHint?: string;
2353
+ }) => Promise<URL>;
2354
+ validateAuthorizationCode: ({ code, redirectURI, codeVerifier }: {
2355
+ code: string;
2356
+ redirectURI: string;
2357
+ codeVerifier?: string;
2358
+ deviceId?: string;
2359
+ }) => Promise<OAuth2Tokens>;
2360
+ getUserInfo(token: OAuth2Tokens & {
2361
+ user?: {
2362
+ name?: {
2363
+ firstName?: string;
2364
+ lastName?: string;
2365
+ };
2366
+ email?: string;
2367
+ };
2368
+ }): Promise<{
2369
+ user: {
2370
+ id: string;
2371
+ name?: string;
2372
+ email?: string | null;
2373
+ image?: string;
2374
+ emailVerified: boolean;
2375
+ [key: string]: any;
2376
+ };
2377
+ data: any;
2378
+ } | null>;
2379
+ };
1890
2380
  };
1891
2381
  declare const socialProviderList: ["github", ...(keyof typeof socialProviders)[]];
1892
- declare const SocialProviderListEnum: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick")[]]>;
2382
+ declare const SocialProviderListEnum: z.ZodEnum<["github", ...("apple" | "discord" | "facebook" | "github" | "google" | "microsoft" | "spotify" | "twitch" | "twitter" | "dropbox" | "linkedin" | "gitlab" | "tiktok" | "reddit" | "roblox" | "vk" | "kick" | "zoom")[]]>;
1893
2383
  type SocialProvider = z.infer<typeof SocialProviderListEnum>;
1894
2384
  type SocialProviders = {
1895
2385
  [K in SocialProviderList[number]]?: Prettify<Parameters<(typeof socialProviders)[K]>[0] & {
@@ -1899,4 +2389,4 @@ type SocialProviders = {
1899
2389
 
1900
2390
  type SocialProviderList = typeof socialProviderList;
1901
2391
 
1902
- export { type RobloxProfile as $, type AppleProfile as A, type TwitterProfile as B, type TwitterOption as C, type DiscordProfile as D, twitter as E, type FacebookProfile as F, type GithubProfile as G, type DropboxProfile as H, type DropboxOptions as I, dropbox as J, type LinkedInOptions as K, type LinkedInProfile as L, type MicrosoftEntraIDProfile as M, linkedin as N, type OAuth2Tokens as O, type ProviderOptions as P, type GitlabProfile as Q, type GitlabOptions as R, type SocialProviders as S, type TwitchProfile as T, gitlab as U, type TiktokProfile as V, type TiktokOptions as W, tiktok as X, type RedditProfile as Y, type RedditOptions as Z, reddit as _, type OAuthProvider as a, type RobloxOptions as a0, roblox as a1, type VkProfile as a2, LANG as a3, type VkOption as a4, vk as a5, type KickProfile as a6, type KickOptions as a7, kick as a8, type SocialProviderList as b, socialProviderList as c, SocialProviderListEnum as d, type SocialProvider as e, type GithubOptions as f, github as g, type GoogleProfile as h, type GoogleOptions as i, google as j, type AppleNonConformUser as k, type AppleOptions as l, apple as m, getApplePublicKey as n, type MicrosoftOptions as o, microsoft as p, type DiscordOptions as q, discord as r, socialProviders as s, type SpotifyProfile as t, type SpotifyOptions as u, spotify as v, type TwitchOptions as w, twitch as x, type FacebookOptions as y, facebook as z };
2392
+ export { type RobloxProfile as $, type AppleProfile as A, type TwitterProfile as B, type TwitterOption as C, type DiscordProfile as D, twitter as E, type FacebookProfile as F, type GithubProfile as G, type DropboxProfile as H, type DropboxOptions as I, dropbox as J, type LinkedInOptions as K, type LinkedInProfile as L, type MicrosoftEntraIDProfile as M, linkedin as N, type OAuth2Tokens as O, type ProviderOptions as P, type GitlabProfile as Q, type GitlabOptions as R, type SocialProviders as S, type TwitchProfile as T, gitlab as U, type TiktokProfile as V, type TiktokOptions as W, tiktok as X, type RedditProfile as Y, type RedditOptions as Z, reddit as _, type OAuthProvider as a, type RobloxOptions as a0, roblox as a1, type VkProfile as a2, LANG as a3, type VkOption as a4, vk as a5, type LoginType as a6, type AccountStatus as a7, type PronounOption as a8, type PhoneNumber as a9, type ZoomProfile as aa, type ZoomOptions as ab, zoom as ac, type KickProfile as ad, type KickOptions as ae, kick as af, type SocialProviderList as b, socialProviderList as c, SocialProviderListEnum as d, type SocialProvider as e, type GithubOptions as f, github as g, type GoogleProfile as h, type GoogleOptions as i, google as j, type AppleNonConformUser as k, type AppleOptions as l, apple as m, getApplePublicKey as n, type MicrosoftOptions as o, microsoft as p, type DiscordOptions as q, discord as r, socialProviders as s, type SpotifyProfile as t, type SpotifyOptions as u, spotify as v, type TwitchOptions as w, twitch as x, type FacebookOptions as y, facebook as z };