create-croissant 0.1.0 → 0.1.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.
Files changed (601) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +16 -8
  3. package/template/.prettierignore +10 -0
  4. package/template/.prettierrc +11 -0
  5. package/template/README.md +88 -0
  6. package/template/apps/web/.env.example +4 -0
  7. package/template/apps/web/components.json +23 -0
  8. package/template/apps/web/drizzle.config.ts +11 -0
  9. package/template/apps/web/eslint.config.js +10 -0
  10. package/template/apps/web/node_modules/@better-auth/core/LICENSE.md +20 -0
  11. package/template/apps/web/node_modules/@better-auth/core/README.md +17 -0
  12. package/template/apps/web/node_modules/@better-auth/core/dist/api/index.d.mts +278 -0
  13. package/template/apps/web/node_modules/@better-auth/core/dist/api/index.mjs +56 -0
  14. package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/index.d.mts +6 -0
  15. package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/index.mjs +20 -0
  16. package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/pure.index.d.mts +6 -0
  17. package/template/apps/web/node_modules/@better-auth/core/dist/async_hooks/pure.index.mjs +33 -0
  18. package/template/apps/web/node_modules/@better-auth/core/dist/context/endpoint-context.d.mts +18 -0
  19. package/template/apps/web/node_modules/@better-auth/core/dist/context/endpoint-context.mjs +29 -0
  20. package/template/apps/web/node_modules/@better-auth/core/dist/context/global.d.mts +6 -0
  21. package/template/apps/web/node_modules/@better-auth/core/dist/context/global.mjs +36 -0
  22. package/template/apps/web/node_modules/@better-auth/core/dist/context/index.d.mts +5 -0
  23. package/template/apps/web/node_modules/@better-auth/core/dist/context/index.mjs +5 -0
  24. package/template/apps/web/node_modules/@better-auth/core/dist/context/request-state.d.mts +27 -0
  25. package/template/apps/web/node_modules/@better-auth/core/dist/context/request-state.mjs +47 -0
  26. package/template/apps/web/node_modules/@better-auth/core/dist/context/transaction.d.mts +24 -0
  27. package/template/apps/web/node_modules/@better-auth/core/dist/context/transaction.mjs +93 -0
  28. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/factory.d.mts +17 -0
  29. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/factory.mjs +754 -0
  30. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-field-name.d.mts +18 -0
  31. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-field-name.mjs +36 -0
  32. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-model-name.d.mts +12 -0
  33. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-default-model-name.mjs +30 -0
  34. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.d.mts +26 -0
  35. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.mjs +37 -0
  36. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-name.d.mts +18 -0
  37. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-field-name.mjs +31 -0
  38. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-id-field.d.mts +36 -0
  39. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-id-field.mjs +64 -0
  40. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-model-name.d.mts +12 -0
  41. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/get-model-name.mjs +21 -0
  42. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/index.d.mts +525 -0
  43. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/index.mjs +24 -0
  44. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/types.d.mts +105 -0
  45. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/utils.d.mts +7 -0
  46. package/template/apps/web/node_modules/@better-auth/core/dist/db/adapter/utils.mjs +37 -0
  47. package/template/apps/web/node_modules/@better-auth/core/dist/db/get-tables.d.mts +6 -0
  48. package/template/apps/web/node_modules/@better-auth/core/dist/db/get-tables.mjs +265 -0
  49. package/template/apps/web/node_modules/@better-auth/core/dist/db/index.d.mts +10 -0
  50. package/template/apps/web/node_modules/@better-auth/core/dist/db/index.mjs +8 -0
  51. package/template/apps/web/node_modules/@better-auth/core/dist/db/plugin.d.mts +12 -0
  52. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/account.d.mts +28 -0
  53. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/account.mjs +17 -0
  54. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/rate-limit.d.mts +18 -0
  55. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/rate-limit.mjs +9 -0
  56. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/session.d.mts +23 -0
  57. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/session.mjs +12 -0
  58. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/shared.d.mts +10 -0
  59. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/shared.mjs +9 -0
  60. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/user.d.mts +22 -0
  61. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/user.mjs +11 -0
  62. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/verification.d.mts +21 -0
  63. package/template/apps/web/node_modules/@better-auth/core/dist/db/schema/verification.mjs +10 -0
  64. package/template/apps/web/node_modules/@better-auth/core/dist/db/type.d.mts +167 -0
  65. package/template/apps/web/node_modules/@better-auth/core/dist/env/color-depth.d.mts +4 -0
  66. package/template/apps/web/node_modules/@better-auth/core/dist/env/color-depth.mjs +86 -0
  67. package/template/apps/web/node_modules/@better-auth/core/dist/env/env-impl.d.mts +32 -0
  68. package/template/apps/web/node_modules/@better-auth/core/dist/env/env-impl.mjs +81 -0
  69. package/template/apps/web/node_modules/@better-auth/core/dist/env/index.d.mts +4 -0
  70. package/template/apps/web/node_modules/@better-auth/core/dist/env/index.mjs +4 -0
  71. package/template/apps/web/node_modules/@better-auth/core/dist/env/logger.d.mts +48 -0
  72. package/template/apps/web/node_modules/@better-auth/core/dist/env/logger.mjs +79 -0
  73. package/template/apps/web/node_modules/@better-auth/core/dist/error/codes.d.mts +68 -0
  74. package/template/apps/web/node_modules/@better-auth/core/dist/error/codes.mjs +54 -0
  75. package/template/apps/web/node_modules/@better-auth/core/dist/error/index.d.mts +19 -0
  76. package/template/apps/web/node_modules/@better-auth/core/dist/error/index.mjs +27 -0
  77. package/template/apps/web/node_modules/@better-auth/core/dist/index.d.mts +9 -0
  78. package/template/apps/web/node_modules/@better-auth/core/dist/index.mjs +1 -0
  79. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/api.mjs +12 -0
  80. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/attributes.d.mts +11 -0
  81. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/attributes.mjs +10 -0
  82. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/index.d.mts +3 -0
  83. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/index.mjs +3 -0
  84. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/noop.mjs +42 -0
  85. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/pure.index.d.mts +7 -0
  86. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/pure.index.mjs +7 -0
  87. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/tracer.d.mts +13 -0
  88. package/template/apps/web/node_modules/@better-auth/core/dist/instrumentation/tracer.mjs +53 -0
  89. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/client-credentials-token.d.mts +56 -0
  90. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/client-credentials-token.mjs +64 -0
  91. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/create-authorization-url.d.mts +44 -0
  92. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/create-authorization-url.mjs +41 -0
  93. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/index.d.mts +8 -0
  94. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/index.mjs +7 -0
  95. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/oauth-provider.d.mts +192 -0
  96. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/refresh-access-token.d.mts +54 -0
  97. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/refresh-access-token.mjs +73 -0
  98. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/utils.d.mts +16 -0
  99. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/utils.mjs +37 -0
  100. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/validate-authorization-code.d.mts +85 -0
  101. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/validate-authorization-code.mjs +79 -0
  102. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/verify.d.mts +42 -0
  103. package/template/apps/web/node_modules/@better-auth/core/dist/oauth2/verify.mjs +92 -0
  104. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/apple.d.mts +126 -0
  105. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/apple.mjs +107 -0
  106. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/atlassian.d.mts +70 -0
  107. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/atlassian.mjs +80 -0
  108. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/cognito.d.mts +85 -0
  109. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/cognito.mjs +162 -0
  110. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/discord.d.mts +124 -0
  111. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/discord.mjs +62 -0
  112. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/dropbox.d.mts +69 -0
  113. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/dropbox.mjs +72 -0
  114. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/facebook.d.mts +79 -0
  115. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/facebook.mjs +124 -0
  116. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/figma.d.mts +61 -0
  117. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/figma.mjs +83 -0
  118. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/github.d.mts +102 -0
  119. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/github.mjs +92 -0
  120. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/gitlab.d.mts +123 -0
  121. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/gitlab.mjs +79 -0
  122. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/google.d.mts +97 -0
  123. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/google.mjs +109 -0
  124. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/huggingface.d.mts +83 -0
  125. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/huggingface.mjs +73 -0
  126. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/index.d.mts +1834 -0
  127. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/index.mjs +78 -0
  128. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kakao.d.mts +161 -0
  129. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kakao.mjs +70 -0
  130. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kick.d.mts +73 -0
  131. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/kick.mjs +68 -0
  132. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/line.d.mts +105 -0
  133. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/line.mjs +110 -0
  134. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linear.d.mts +68 -0
  135. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linear.mjs +85 -0
  136. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linkedin.d.mts +67 -0
  137. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/linkedin.mjs +73 -0
  138. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/microsoft-entra-id.d.mts +174 -0
  139. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/microsoft-entra-id.mjs +140 -0
  140. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/naver.d.mts +92 -0
  141. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/naver.mjs +65 -0
  142. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/notion.d.mts +64 -0
  143. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/notion.mjs +72 -0
  144. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paybin.d.mts +71 -0
  145. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paybin.mjs +81 -0
  146. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paypal.d.mts +129 -0
  147. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/paypal.mjs +140 -0
  148. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/polar.d.mts +74 -0
  149. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/polar.mjs +71 -0
  150. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/railway.d.mts +65 -0
  151. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/railway.mjs +74 -0
  152. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/reddit.d.mts +62 -0
  153. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/reddit.mjs +80 -0
  154. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/roblox.d.mts +70 -0
  155. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/roblox.mjs +57 -0
  156. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/salesforce.d.mts +79 -0
  157. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/salesforce.mjs +87 -0
  158. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/slack.d.mts +83 -0
  159. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/slack.mjs +66 -0
  160. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/spotify.d.mts +63 -0
  161. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/spotify.mjs +69 -0
  162. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/tiktok.d.mts +168 -0
  163. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/tiktok.mjs +60 -0
  164. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitch.d.mts +79 -0
  165. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitch.mjs +75 -0
  166. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitter.d.mts +126 -0
  167. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/twitter.mjs +85 -0
  168. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vercel.d.mts +62 -0
  169. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vercel.mjs +58 -0
  170. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vk.d.mts +70 -0
  171. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/vk.mjs +81 -0
  172. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/wechat.d.mts +113 -0
  173. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/wechat.mjs +81 -0
  174. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/zoom.d.mts +163 -0
  175. package/template/apps/web/node_modules/@better-auth/core/dist/social-providers/zoom.mjs +69 -0
  176. package/template/apps/web/node_modules/@better-auth/core/dist/types/context.d.mts +277 -0
  177. package/template/apps/web/node_modules/@better-auth/core/dist/types/cookie.d.mts +15 -0
  178. package/template/apps/web/node_modules/@better-auth/core/dist/types/helper.d.mts +10 -0
  179. package/template/apps/web/node_modules/@better-auth/core/dist/types/index.d.mts +9 -0
  180. package/template/apps/web/node_modules/@better-auth/core/dist/types/init-options.d.mts +1358 -0
  181. package/template/apps/web/node_modules/@better-auth/core/dist/types/plugin-client.d.mts +113 -0
  182. package/template/apps/web/node_modules/@better-auth/core/dist/types/plugin.d.mts +124 -0
  183. package/template/apps/web/node_modules/@better-auth/core/dist/types/secret.d.mts +11 -0
  184. package/template/apps/web/node_modules/@better-auth/core/dist/utils/async.d.mts +22 -0
  185. package/template/apps/web/node_modules/@better-auth/core/dist/utils/async.mjs +32 -0
  186. package/template/apps/web/node_modules/@better-auth/core/dist/utils/db.d.mts +9 -0
  187. package/template/apps/web/node_modules/@better-auth/core/dist/utils/db.mjs +15 -0
  188. package/template/apps/web/node_modules/@better-auth/core/dist/utils/deprecate.d.mts +9 -0
  189. package/template/apps/web/node_modules/@better-auth/core/dist/utils/deprecate.mjs +16 -0
  190. package/template/apps/web/node_modules/@better-auth/core/dist/utils/error-codes.d.mts +13 -0
  191. package/template/apps/web/node_modules/@better-auth/core/dist/utils/error-codes.mjs +10 -0
  192. package/template/apps/web/node_modules/@better-auth/core/dist/utils/fetch-metadata.d.mts +4 -0
  193. package/template/apps/web/node_modules/@better-auth/core/dist/utils/fetch-metadata.mjs +6 -0
  194. package/template/apps/web/node_modules/@better-auth/core/dist/utils/host.d.mts +147 -0
  195. package/template/apps/web/node_modules/@better-auth/core/dist/utils/host.mjs +291 -0
  196. package/template/apps/web/node_modules/@better-auth/core/dist/utils/id.d.mts +4 -0
  197. package/template/apps/web/node_modules/@better-auth/core/dist/utils/id.mjs +7 -0
  198. package/template/apps/web/node_modules/@better-auth/core/dist/utils/ip.d.mts +54 -0
  199. package/template/apps/web/node_modules/@better-auth/core/dist/utils/ip.mjs +116 -0
  200. package/template/apps/web/node_modules/@better-auth/core/dist/utils/is-api-error.d.mts +6 -0
  201. package/template/apps/web/node_modules/@better-auth/core/dist/utils/is-api-error.mjs +8 -0
  202. package/template/apps/web/node_modules/@better-auth/core/dist/utils/json.d.mts +4 -0
  203. package/template/apps/web/node_modules/@better-auth/core/dist/utils/json.mjs +41 -0
  204. package/template/apps/web/node_modules/@better-auth/core/dist/utils/string.d.mts +4 -0
  205. package/template/apps/web/node_modules/@better-auth/core/dist/utils/string.mjs +6 -0
  206. package/template/apps/web/node_modules/@better-auth/core/dist/utils/url.d.mts +20 -0
  207. package/template/apps/web/node_modules/@better-auth/core/dist/utils/url.mjs +31 -0
  208. package/template/apps/web/node_modules/@better-auth/core/package.json +193 -0
  209. package/template/apps/web/node_modules/@better-auth/core/src/api/index.ts +140 -0
  210. package/template/apps/web/node_modules/@better-auth/core/src/async_hooks/index.ts +40 -0
  211. package/template/apps/web/node_modules/@better-auth/core/src/async_hooks/pure.index.ts +46 -0
  212. package/template/apps/web/node_modules/@better-auth/core/src/context/endpoint-context.ts +50 -0
  213. package/template/apps/web/node_modules/@better-auth/core/src/context/global.ts +57 -0
  214. package/template/apps/web/node_modules/@better-auth/core/src/context/index.ts +23 -0
  215. package/template/apps/web/node_modules/@better-auth/core/src/context/request-state.ts +91 -0
  216. package/template/apps/web/node_modules/@better-auth/core/src/context/transaction.ts +136 -0
  217. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/factory.ts +1440 -0
  218. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-default-field-name.ts +59 -0
  219. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-default-model-name.ts +51 -0
  220. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-field-attributes.ts +62 -0
  221. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-field-name.ts +43 -0
  222. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-id-field.ts +150 -0
  223. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/get-model-name.ts +36 -0
  224. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/index.ts +567 -0
  225. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/types.ts +132 -0
  226. package/template/apps/web/node_modules/@better-auth/core/src/db/adapter/utils.ts +61 -0
  227. package/template/apps/web/node_modules/@better-auth/core/src/db/get-tables.ts +296 -0
  228. package/template/apps/web/node_modules/@better-auth/core/src/db/index.ts +43 -0
  229. package/template/apps/web/node_modules/@better-auth/core/src/db/plugin.ts +11 -0
  230. package/template/apps/web/node_modules/@better-auth/core/src/db/schema/account.ts +47 -0
  231. package/template/apps/web/node_modules/@better-auth/core/src/db/schema/rate-limit.ts +36 -0
  232. package/template/apps/web/node_modules/@better-auth/core/src/db/schema/session.ts +29 -0
  233. package/template/apps/web/node_modules/@better-auth/core/src/db/schema/shared.ts +7 -0
  234. package/template/apps/web/node_modules/@better-auth/core/src/db/schema/user.ts +28 -0
  235. package/template/apps/web/node_modules/@better-auth/core/src/db/schema/verification.ts +28 -0
  236. package/template/apps/web/node_modules/@better-auth/core/src/db/type.ts +333 -0
  237. package/template/apps/web/node_modules/@better-auth/core/src/env/color-depth.ts +172 -0
  238. package/template/apps/web/node_modules/@better-auth/core/src/env/env-impl.ts +124 -0
  239. package/template/apps/web/node_modules/@better-auth/core/src/env/index.ts +23 -0
  240. package/template/apps/web/node_modules/@better-auth/core/src/env/logger.ts +145 -0
  241. package/template/apps/web/node_modules/@better-auth/core/src/error/codes.ts +71 -0
  242. package/template/apps/web/node_modules/@better-auth/core/src/error/index.ts +35 -0
  243. package/template/apps/web/node_modules/@better-auth/core/src/index.ts +1 -0
  244. package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/api.ts +17 -0
  245. package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/attributes.ts +22 -0
  246. package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/index.ts +2 -0
  247. package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/noop.ts +74 -0
  248. package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/pure.index.ts +31 -0
  249. package/template/apps/web/node_modules/@better-auth/core/src/instrumentation/tracer.ts +95 -0
  250. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/client-credentials-token.ts +126 -0
  251. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/create-authorization-url.ts +89 -0
  252. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/index.ts +33 -0
  253. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/oauth-provider.ts +222 -0
  254. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/refresh-access-token.ts +157 -0
  255. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/utils.ts +51 -0
  256. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/validate-authorization-code.ts +180 -0
  257. package/template/apps/web/node_modules/@better-auth/core/src/oauth2/verify.ts +221 -0
  258. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/apple.ts +231 -0
  259. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/atlassian.ts +133 -0
  260. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/cognito.ts +281 -0
  261. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/discord.ts +170 -0
  262. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/dropbox.ts +112 -0
  263. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/facebook.ts +215 -0
  264. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/figma.ts +118 -0
  265. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/github.ts +184 -0
  266. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/gitlab.ts +155 -0
  267. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/google.ts +204 -0
  268. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/huggingface.ts +119 -0
  269. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/index.ts +132 -0
  270. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/kakao.ts +179 -0
  271. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/kick.ts +109 -0
  272. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/line.ts +169 -0
  273. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/linear.ts +121 -0
  274. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/linkedin.ts +110 -0
  275. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/microsoft-entra-id.ts +352 -0
  276. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/naver.ts +113 -0
  277. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/notion.ts +108 -0
  278. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/paybin.ts +118 -0
  279. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/paypal.ts +263 -0
  280. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/polar.ts +111 -0
  281. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/railway.ts +100 -0
  282. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/reddit.ts +122 -0
  283. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/roblox.ts +112 -0
  284. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/salesforce.ts +159 -0
  285. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/slack.ts +112 -0
  286. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/spotify.ts +94 -0
  287. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/tiktok.ts +211 -0
  288. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/twitch.ts +112 -0
  289. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/twitter.ts +199 -0
  290. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/vercel.ts +87 -0
  291. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/vk.ts +125 -0
  292. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/wechat.ts +213 -0
  293. package/template/apps/web/node_modules/@better-auth/core/src/social-providers/zoom.ts +230 -0
  294. package/template/apps/web/node_modules/@better-auth/core/src/types/context.ts +415 -0
  295. package/template/apps/web/node_modules/@better-auth/core/src/types/cookie.ts +10 -0
  296. package/template/apps/web/node_modules/@better-auth/core/src/types/helper.ts +27 -0
  297. package/template/apps/web/node_modules/@better-auth/core/src/types/index.ts +40 -0
  298. package/template/apps/web/node_modules/@better-auth/core/src/types/init-options.ts +1610 -0
  299. package/template/apps/web/node_modules/@better-auth/core/src/types/plugin-client.ts +129 -0
  300. package/template/apps/web/node_modules/@better-auth/core/src/types/plugin.ts +163 -0
  301. package/template/apps/web/node_modules/@better-auth/core/src/types/secret.ts +8 -0
  302. package/template/apps/web/node_modules/@better-auth/core/src/utils/async.ts +53 -0
  303. package/template/apps/web/node_modules/@better-auth/core/src/utils/db.ts +20 -0
  304. package/template/apps/web/node_modules/@better-auth/core/src/utils/deprecate.ts +21 -0
  305. package/template/apps/web/node_modules/@better-auth/core/src/utils/error-codes.ts +68 -0
  306. package/template/apps/web/node_modules/@better-auth/core/src/utils/fetch-metadata.ts +3 -0
  307. package/template/apps/web/node_modules/@better-auth/core/src/utils/host.ts +401 -0
  308. package/template/apps/web/node_modules/@better-auth/core/src/utils/id.ts +5 -0
  309. package/template/apps/web/node_modules/@better-auth/core/src/utils/ip.ts +211 -0
  310. package/template/apps/web/node_modules/@better-auth/core/src/utils/is-api-error.ts +10 -0
  311. package/template/apps/web/node_modules/@better-auth/core/src/utils/json.ts +56 -0
  312. package/template/apps/web/node_modules/@better-auth/core/src/utils/string.ts +3 -0
  313. package/template/apps/web/node_modules/@better-auth/core/src/utils/url.ts +43 -0
  314. package/template/apps/web/node_modules/@better-auth/drizzle-adapter/LICENSE.md +20 -0
  315. package/template/apps/web/node_modules/@better-auth/drizzle-adapter/README.md +17 -0
  316. package/template/apps/web/node_modules/@better-auth/drizzle-adapter/dist/index.d.mts +47 -0
  317. package/template/apps/web/node_modules/@better-auth/drizzle-adapter/dist/index.mjs +458 -0
  318. package/template/apps/web/node_modules/@better-auth/drizzle-adapter/package.json +62 -0
  319. package/template/apps/web/node_modules/@better-auth/utils/README.md +384 -0
  320. package/template/apps/web/node_modules/@better-auth/utils/dist/base32.cjs +104 -0
  321. package/template/apps/web/node_modules/@better-auth/utils/dist/base32.d.cts +44 -0
  322. package/template/apps/web/node_modules/@better-auth/utils/dist/base32.d.mts +44 -0
  323. package/template/apps/web/node_modules/@better-auth/utils/dist/base32.d.ts +44 -0
  324. package/template/apps/web/node_modules/@better-auth/utils/dist/base32.mjs +101 -0
  325. package/template/apps/web/node_modules/@better-auth/utils/dist/base64.cjs +80 -0
  326. package/template/apps/web/node_modules/@better-auth/utils/dist/base64.d.cts +16 -0
  327. package/template/apps/web/node_modules/@better-auth/utils/dist/base64.d.mts +16 -0
  328. package/template/apps/web/node_modules/@better-auth/utils/dist/base64.d.ts +16 -0
  329. package/template/apps/web/node_modules/@better-auth/utils/dist/base64.mjs +77 -0
  330. package/template/apps/web/node_modules/@better-auth/utils/dist/binary.cjs +16 -0
  331. package/template/apps/web/node_modules/@better-auth/utils/dist/binary.d.cts +8 -0
  332. package/template/apps/web/node_modules/@better-auth/utils/dist/binary.d.mts +8 -0
  333. package/template/apps/web/node_modules/@better-auth/utils/dist/binary.d.ts +8 -0
  334. package/template/apps/web/node_modules/@better-auth/utils/dist/binary.mjs +14 -0
  335. package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.cjs +90 -0
  336. package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.d.cts +19 -0
  337. package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.d.mts +19 -0
  338. package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.d.ts +19 -0
  339. package/template/apps/web/node_modules/@better-auth/utils/dist/ecdsa.mjs +88 -0
  340. package/template/apps/web/node_modules/@better-auth/utils/dist/hash.cjs +31 -0
  341. package/template/apps/web/node_modules/@better-auth/utils/dist/hash.d.cts +7 -0
  342. package/template/apps/web/node_modules/@better-auth/utils/dist/hash.d.mts +7 -0
  343. package/template/apps/web/node_modules/@better-auth/utils/dist/hash.d.ts +7 -0
  344. package/template/apps/web/node_modules/@better-auth/utils/dist/hash.mjs +29 -0
  345. package/template/apps/web/node_modules/@better-auth/utils/dist/hex.cjs +40 -0
  346. package/template/apps/web/node_modules/@better-auth/utils/dist/hex.d.cts +8 -0
  347. package/template/apps/web/node_modules/@better-auth/utils/dist/hex.d.mts +8 -0
  348. package/template/apps/web/node_modules/@better-auth/utils/dist/hex.d.ts +8 -0
  349. package/template/apps/web/node_modules/@better-auth/utils/dist/hex.mjs +38 -0
  350. package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.cjs +58 -0
  351. package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.d.cts +9 -0
  352. package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.d.mts +9 -0
  353. package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.d.ts +9 -0
  354. package/template/apps/web/node_modules/@better-auth/utils/dist/hmac.mjs +56 -0
  355. package/template/apps/web/node_modules/@better-auth/utils/dist/index.cjs +10 -0
  356. package/template/apps/web/node_modules/@better-auth/utils/dist/index.d.cts +3 -0
  357. package/template/apps/web/node_modules/@better-auth/utils/dist/index.d.mts +3 -0
  358. package/template/apps/web/node_modules/@better-auth/utils/dist/index.d.ts +3 -0
  359. package/template/apps/web/node_modules/@better-auth/utils/dist/index.mjs +8 -0
  360. package/template/apps/web/node_modules/@better-auth/utils/dist/otp.cjs +90 -0
  361. package/template/apps/web/node_modules/@better-auth/utils/dist/otp.d.cts +13 -0
  362. package/template/apps/web/node_modules/@better-auth/utils/dist/otp.d.mts +13 -0
  363. package/template/apps/web/node_modules/@better-auth/utils/dist/otp.d.ts +13 -0
  364. package/template/apps/web/node_modules/@better-auth/utils/dist/otp.mjs +88 -0
  365. package/template/apps/web/node_modules/@better-auth/utils/dist/password.cjs +36 -0
  366. package/template/apps/web/node_modules/@better-auth/utils/dist/password.d.cts +4 -0
  367. package/template/apps/web/node_modules/@better-auth/utils/dist/password.d.mts +4 -0
  368. package/template/apps/web/node_modules/@better-auth/utils/dist/password.d.ts +4 -0
  369. package/template/apps/web/node_modules/@better-auth/utils/dist/password.mjs +33 -0
  370. package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.cjs +47 -0
  371. package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.d.cts +4 -0
  372. package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.d.mts +4 -0
  373. package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.d.ts +4 -0
  374. package/template/apps/web/node_modules/@better-auth/utils/dist/password.node.mjs +44 -0
  375. package/template/apps/web/node_modules/@better-auth/utils/dist/random.cjs +55 -0
  376. package/template/apps/web/node_modules/@better-auth/utils/dist/random.d.cts +4 -0
  377. package/template/apps/web/node_modules/@better-auth/utils/dist/random.d.mts +4 -0
  378. package/template/apps/web/node_modules/@better-auth/utils/dist/random.d.ts +4 -0
  379. package/template/apps/web/node_modules/@better-auth/utils/dist/random.mjs +53 -0
  380. package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.cjs +76 -0
  381. package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.d.cts +16 -0
  382. package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.d.mts +16 -0
  383. package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.d.ts +16 -0
  384. package/template/apps/web/node_modules/@better-auth/utils/dist/rsa.mjs +74 -0
  385. package/template/apps/web/node_modules/@better-auth/utils/dist/shared/utils.ecd028f7.d.cts +22 -0
  386. package/template/apps/web/node_modules/@better-auth/utils/dist/shared/utils.ecd028f7.d.mts +22 -0
  387. package/template/apps/web/node_modules/@better-auth/utils/dist/shared/utils.ecd028f7.d.ts +22 -0
  388. package/template/apps/web/node_modules/@better-auth/utils/package.json +95 -0
  389. package/template/apps/web/node_modules/better-call/LICENSE +21 -0
  390. package/template/apps/web/node_modules/better-call/dist/_virtual/_rolldown/runtime.cjs +29 -0
  391. package/template/apps/web/node_modules/better-call/dist/adapters/node/request.cjs +181 -0
  392. package/template/apps/web/node_modules/better-call/dist/adapters/node/request.cjs.map +1 -0
  393. package/template/apps/web/node_modules/better-call/dist/adapters/node/request.d.cts +16 -0
  394. package/template/apps/web/node_modules/better-call/dist/adapters/node/request.d.mts +16 -0
  395. package/template/apps/web/node_modules/better-call/dist/adapters/node/request.mjs +178 -0
  396. package/template/apps/web/node_modules/better-call/dist/adapters/node/request.mjs.map +1 -0
  397. package/template/apps/web/node_modules/better-call/dist/client.cjs +23 -0
  398. package/template/apps/web/node_modules/better-call/dist/client.cjs.map +1 -0
  399. package/template/apps/web/node_modules/better-call/dist/client.d.cts +53 -0
  400. package/template/apps/web/node_modules/better-call/dist/client.d.mts +53 -0
  401. package/template/apps/web/node_modules/better-call/dist/client.mjs +14 -0
  402. package/template/apps/web/node_modules/better-call/dist/client.mjs.map +1 -0
  403. package/template/apps/web/node_modules/better-call/dist/context.cjs +103 -0
  404. package/template/apps/web/node_modules/better-call/dist/context.cjs.map +1 -0
  405. package/template/apps/web/node_modules/better-call/dist/context.d.cts +341 -0
  406. package/template/apps/web/node_modules/better-call/dist/context.d.mts +341 -0
  407. package/template/apps/web/node_modules/better-call/dist/context.mjs +103 -0
  408. package/template/apps/web/node_modules/better-call/dist/context.mjs.map +1 -0
  409. package/template/apps/web/node_modules/better-call/dist/cookies.cjs +87 -0
  410. package/template/apps/web/node_modules/better-call/dist/cookies.cjs.map +1 -0
  411. package/template/apps/web/node_modules/better-call/dist/cookies.d.cts +103 -0
  412. package/template/apps/web/node_modules/better-call/dist/cookies.d.mts +103 -0
  413. package/template/apps/web/node_modules/better-call/dist/cookies.mjs +84 -0
  414. package/template/apps/web/node_modules/better-call/dist/cookies.mjs.map +1 -0
  415. package/template/apps/web/node_modules/better-call/dist/crypto.cjs +39 -0
  416. package/template/apps/web/node_modules/better-call/dist/crypto.cjs.map +1 -0
  417. package/template/apps/web/node_modules/better-call/dist/crypto.mjs +36 -0
  418. package/template/apps/web/node_modules/better-call/dist/crypto.mjs.map +1 -0
  419. package/template/apps/web/node_modules/better-call/dist/endpoint.cjs +70 -0
  420. package/template/apps/web/node_modules/better-call/dist/endpoint.cjs.map +1 -0
  421. package/template/apps/web/node_modules/better-call/dist/endpoint.d.cts +475 -0
  422. package/template/apps/web/node_modules/better-call/dist/endpoint.d.mts +475 -0
  423. package/template/apps/web/node_modules/better-call/dist/endpoint.mjs +70 -0
  424. package/template/apps/web/node_modules/better-call/dist/endpoint.mjs.map +1 -0
  425. package/template/apps/web/node_modules/better-call/dist/error.cjs +141 -0
  426. package/template/apps/web/node_modules/better-call/dist/error.cjs.map +1 -0
  427. package/template/apps/web/node_modules/better-call/dist/error.d.cts +103 -0
  428. package/template/apps/web/node_modules/better-call/dist/error.d.mts +103 -0
  429. package/template/apps/web/node_modules/better-call/dist/error.mjs +133 -0
  430. package/template/apps/web/node_modules/better-call/dist/error.mjs.map +1 -0
  431. package/template/apps/web/node_modules/better-call/dist/helper.d.cts +12 -0
  432. package/template/apps/web/node_modules/better-call/dist/helper.d.mts +12 -0
  433. package/template/apps/web/node_modules/better-call/dist/index.cjs +28 -0
  434. package/template/apps/web/node_modules/better-call/dist/index.d.cts +11 -0
  435. package/template/apps/web/node_modules/better-call/dist/index.d.mts +11 -0
  436. package/template/apps/web/node_modules/better-call/dist/index.mjs +10 -0
  437. package/template/apps/web/node_modules/better-call/dist/middleware.cjs +52 -0
  438. package/template/apps/web/node_modules/better-call/dist/middleware.cjs.map +1 -0
  439. package/template/apps/web/node_modules/better-call/dist/middleware.d.cts +123 -0
  440. package/template/apps/web/node_modules/better-call/dist/middleware.d.mts +123 -0
  441. package/template/apps/web/node_modules/better-call/dist/middleware.mjs +52 -0
  442. package/template/apps/web/node_modules/better-call/dist/middleware.mjs.map +1 -0
  443. package/template/apps/web/node_modules/better-call/dist/node.cjs +18 -0
  444. package/template/apps/web/node_modules/better-call/dist/node.cjs.map +1 -0
  445. package/template/apps/web/node_modules/better-call/dist/node.d.cts +9 -0
  446. package/template/apps/web/node_modules/better-call/dist/node.d.mts +9 -0
  447. package/template/apps/web/node_modules/better-call/dist/node.mjs +15 -0
  448. package/template/apps/web/node_modules/better-call/dist/node.mjs.map +1 -0
  449. package/template/apps/web/node_modules/better-call/dist/openapi.cjs +191 -0
  450. package/template/apps/web/node_modules/better-call/dist/openapi.cjs.map +1 -0
  451. package/template/apps/web/node_modules/better-call/dist/openapi.d.cts +113 -0
  452. package/template/apps/web/node_modules/better-call/dist/openapi.d.mts +113 -0
  453. package/template/apps/web/node_modules/better-call/dist/openapi.mjs +189 -0
  454. package/template/apps/web/node_modules/better-call/dist/openapi.mjs.map +1 -0
  455. package/template/apps/web/node_modules/better-call/dist/router.cjs +118 -0
  456. package/template/apps/web/node_modules/better-call/dist/router.cjs.map +1 -0
  457. package/template/apps/web/node_modules/better-call/dist/router.d.cts +103 -0
  458. package/template/apps/web/node_modules/better-call/dist/router.d.mts +103 -0
  459. package/template/apps/web/node_modules/better-call/dist/router.mjs +117 -0
  460. package/template/apps/web/node_modules/better-call/dist/router.mjs.map +1 -0
  461. package/template/apps/web/node_modules/better-call/dist/standard-schema.d.cts +59 -0
  462. package/template/apps/web/node_modules/better-call/dist/standard-schema.d.mts +59 -0
  463. package/template/apps/web/node_modules/better-call/dist/to-response.cjs +153 -0
  464. package/template/apps/web/node_modules/better-call/dist/to-response.cjs.map +1 -0
  465. package/template/apps/web/node_modules/better-call/dist/to-response.d.cts +12 -0
  466. package/template/apps/web/node_modules/better-call/dist/to-response.d.mts +12 -0
  467. package/template/apps/web/node_modules/better-call/dist/to-response.mjs +153 -0
  468. package/template/apps/web/node_modules/better-call/dist/to-response.mjs.map +1 -0
  469. package/template/apps/web/node_modules/better-call/dist/utils.cjs +86 -0
  470. package/template/apps/web/node_modules/better-call/dist/utils.cjs.map +1 -0
  471. package/template/apps/web/node_modules/better-call/dist/utils.mjs +82 -0
  472. package/template/apps/web/node_modules/better-call/dist/utils.mjs.map +1 -0
  473. package/template/apps/web/node_modules/better-call/dist/validator.cjs +58 -0
  474. package/template/apps/web/node_modules/better-call/dist/validator.cjs.map +1 -0
  475. package/template/apps/web/node_modules/better-call/dist/validator.mjs +57 -0
  476. package/template/apps/web/node_modules/better-call/dist/validator.mjs.map +1 -0
  477. package/template/apps/web/node_modules/better-call/package.json +96 -0
  478. package/template/apps/web/node_modules/set-cookie-parser/LICENSE +21 -0
  479. package/template/apps/web/node_modules/set-cookie-parser/README.md +169 -0
  480. package/template/apps/web/node_modules/set-cookie-parser/dist/.eslintrc.cjs +16 -0
  481. package/template/apps/web/node_modules/set-cookie-parser/dist/set-cookie.cjs +260 -0
  482. package/template/apps/web/node_modules/set-cookie-parser/lib/set-cookie.d.ts +119 -0
  483. package/template/apps/web/node_modules/set-cookie-parser/lib/set-cookie.js +265 -0
  484. package/template/apps/web/node_modules/set-cookie-parser/package.json +61 -0
  485. package/template/apps/web/package.json +44 -0
  486. package/template/apps/web/public/favicon.ico +0 -0
  487. package/template/apps/web/public/manifest.json +25 -0
  488. package/template/apps/web/public/robots.txt +3 -0
  489. package/template/apps/web/src/components/app-sidebar.tsx +139 -0
  490. package/template/apps/web/src/components/login-form.tsx +111 -0
  491. package/template/apps/web/src/components/search-form.tsx +27 -0
  492. package/template/apps/web/src/components/signup-form.tsx +137 -0
  493. package/template/apps/web/src/components/version-switcher.tsx +64 -0
  494. package/template/apps/web/src/hooks/use-mobile.ts +19 -0
  495. package/template/apps/web/src/lib/auth-client.ts +3 -0
  496. package/template/apps/web/src/lib/auth-utils.ts +15 -0
  497. package/template/apps/web/src/lib/orpc.ts +32 -0
  498. package/template/apps/web/src/routeTree.gen.ts +282 -0
  499. package/template/apps/web/src/router.tsx +20 -0
  500. package/template/apps/web/src/routes/__root.tsx +53 -0
  501. package/template/apps/web/src/routes/api/auth/$.ts +15 -0
  502. package/template/apps/web/src/routes/api/rpc.$.ts +34 -0
  503. package/template/apps/web/src/routes/client-orpc-auth.tsx +62 -0
  504. package/template/apps/web/src/routes/client-orpc.tsx +43 -0
  505. package/template/apps/web/src/routes/dashboard.tsx +59 -0
  506. package/template/apps/web/src/routes/index.tsx +57 -0
  507. package/template/apps/web/src/routes/isr.tsx +33 -0
  508. package/template/apps/web/src/routes/login.tsx +16 -0
  509. package/template/apps/web/src/routes/signup.tsx +16 -0
  510. package/template/apps/web/src/routes/ssr-orpc-auth.tsx +53 -0
  511. package/template/apps/web/src/routes/ssr-orpc.tsx +36 -0
  512. package/template/apps/web/tsconfig.json +29 -0
  513. package/template/apps/web/vite.config.ts +19 -0
  514. package/template/docker-compose.yml +16 -0
  515. package/template/package.json +35 -0
  516. package/template/packages/auth/eslint.config.ts +3 -0
  517. package/template/packages/auth/package.json +24 -0
  518. package/template/packages/auth/src/lib/auth.ts +13 -0
  519. package/template/packages/auth/tsconfig.json +17 -0
  520. package/template/packages/auth/tsconfig.lint.json +14 -0
  521. package/template/packages/db/eslint.config.ts +3 -0
  522. package/template/packages/db/package.json +27 -0
  523. package/template/packages/db/src/auth-schema.ts +93 -0
  524. package/template/packages/db/src/index.ts +7 -0
  525. package/template/packages/db/src/planets-schema.ts +13 -0
  526. package/template/packages/db/src/schema.ts +2 -0
  527. package/template/packages/db/tsconfig.json +17 -0
  528. package/template/packages/db/tsconfig.lint.json +14 -0
  529. package/template/packages/orpc/eslint.config.ts +3 -0
  530. package/template/packages/orpc/package.json +21 -0
  531. package/template/packages/orpc/src/lib/router.ts +52 -0
  532. package/template/packages/orpc/tsconfig.json +17 -0
  533. package/template/packages/orpc/tsconfig.lint.json +14 -0
  534. package/template/packages/ui/components.json +23 -0
  535. package/template/packages/ui/eslint.config.ts +3 -0
  536. package/template/packages/ui/package.json +48 -0
  537. package/template/packages/ui/src/components/.gitkeep +0 -0
  538. package/template/packages/ui/src/components/accordion.tsx +72 -0
  539. package/template/packages/ui/src/components/alert-dialog.tsx +187 -0
  540. package/template/packages/ui/src/components/alert.tsx +77 -0
  541. package/template/packages/ui/src/components/aspect-ratio.tsx +22 -0
  542. package/template/packages/ui/src/components/avatar.tsx +107 -0
  543. package/template/packages/ui/src/components/badge.tsx +53 -0
  544. package/template/packages/ui/src/components/breadcrumb.tsx +125 -0
  545. package/template/packages/ui/src/components/button-group.tsx +88 -0
  546. package/template/packages/ui/src/components/button.tsx +59 -0
  547. package/template/packages/ui/src/components/calendar.tsx +229 -0
  548. package/template/packages/ui/src/components/card.tsx +103 -0
  549. package/template/packages/ui/src/components/carousel.tsx +240 -0
  550. package/template/packages/ui/src/components/chart.tsx +371 -0
  551. package/template/packages/ui/src/components/checkbox.tsx +29 -0
  552. package/template/packages/ui/src/components/collapsible.tsx +19 -0
  553. package/template/packages/ui/src/components/combobox.tsx +295 -0
  554. package/template/packages/ui/src/components/command.tsx +196 -0
  555. package/template/packages/ui/src/components/context-menu.tsx +271 -0
  556. package/template/packages/ui/src/components/dialog.tsx +158 -0
  557. package/template/packages/ui/src/components/direction.tsx +4 -0
  558. package/template/packages/ui/src/components/drawer.tsx +134 -0
  559. package/template/packages/ui/src/components/dropdown-menu.tsx +266 -0
  560. package/template/packages/ui/src/components/empty.tsx +105 -0
  561. package/template/packages/ui/src/components/field.tsx +237 -0
  562. package/template/packages/ui/src/components/hover-card.tsx +51 -0
  563. package/template/packages/ui/src/components/input-group.tsx +159 -0
  564. package/template/packages/ui/src/components/input-otp.tsx +85 -0
  565. package/template/packages/ui/src/components/input.tsx +20 -0
  566. package/template/packages/ui/src/components/item.tsx +202 -0
  567. package/template/packages/ui/src/components/kbd.tsx +26 -0
  568. package/template/packages/ui/src/components/label.tsx +20 -0
  569. package/template/packages/ui/src/components/menubar.tsx +280 -0
  570. package/template/packages/ui/src/components/native-select.tsx +61 -0
  571. package/template/packages/ui/src/components/navigation-menu.tsx +168 -0
  572. package/template/packages/ui/src/components/pagination.tsx +130 -0
  573. package/template/packages/ui/src/components/popover.tsx +88 -0
  574. package/template/packages/ui/src/components/progress.tsx +83 -0
  575. package/template/packages/ui/src/components/radio-group.tsx +36 -0
  576. package/template/packages/ui/src/components/resizable.tsx +50 -0
  577. package/template/packages/ui/src/components/scroll-area.tsx +53 -0
  578. package/template/packages/ui/src/components/select.tsx +201 -0
  579. package/template/packages/ui/src/components/separator.tsx +23 -0
  580. package/template/packages/ui/src/components/sheet.tsx +138 -0
  581. package/template/packages/ui/src/components/sidebar.tsx +726 -0
  582. package/template/packages/ui/src/components/skeleton.tsx +13 -0
  583. package/template/packages/ui/src/components/slider.tsx +52 -0
  584. package/template/packages/ui/src/components/sonner.tsx +50 -0
  585. package/template/packages/ui/src/components/spinner.tsx +10 -0
  586. package/template/packages/ui/src/components/switch.tsx +30 -0
  587. package/template/packages/ui/src/components/table.tsx +116 -0
  588. package/template/packages/ui/src/components/tabs.tsx +81 -0
  589. package/template/packages/ui/src/components/textarea.tsx +18 -0
  590. package/template/packages/ui/src/components/toggle-group.tsx +87 -0
  591. package/template/packages/ui/src/components/toggle.tsx +46 -0
  592. package/template/packages/ui/src/components/tooltip.tsx +64 -0
  593. package/template/packages/ui/src/hooks/.gitkeep +0 -0
  594. package/template/packages/ui/src/hooks/use-mobile.ts +19 -0
  595. package/template/packages/ui/src/lib/.gitkeep +0 -0
  596. package/template/packages/ui/src/lib/utils.ts +7 -0
  597. package/template/packages/ui/src/styles/globals.css +130 -0
  598. package/template/packages/ui/tsconfig.json +17 -0
  599. package/template/packages/ui/tsconfig.lint.json +14 -0
  600. package/template/tsconfig.json +9 -0
  601. package/template/turbo.json +24 -0
@@ -0,0 +1,1834 @@
1
+ import { AppleNonConformUser, AppleOptions, AppleProfile, apple, getApplePublicKey } from "./apple.mjs";
2
+ import { AtlassianOptions, AtlassianProfile, atlassian } from "./atlassian.mjs";
3
+ import { CognitoOptions, CognitoProfile, cognito, getCognitoPublicKey } from "./cognito.mjs";
4
+ import { DiscordOptions, DiscordProfile, discord } from "./discord.mjs";
5
+ import { FacebookOptions, FacebookProfile, facebook } from "./facebook.mjs";
6
+ import { FigmaOptions, FigmaProfile, figma } from "./figma.mjs";
7
+ import { GithubOptions, GithubProfile, github } from "./github.mjs";
8
+ import { MicrosoftEntraIDProfile, MicrosoftOptions, getMicrosoftPublicKey, microsoft } from "./microsoft-entra-id.mjs";
9
+ import { GoogleOptions, GoogleProfile, getGooglePublicKey, google } from "./google.mjs";
10
+ import { HuggingFaceOptions, HuggingFaceProfile, huggingface } from "./huggingface.mjs";
11
+ import { SlackOptions, SlackProfile, slack } from "./slack.mjs";
12
+ import { SpotifyOptions, SpotifyProfile, spotify } from "./spotify.mjs";
13
+ import { TwitchOptions, TwitchProfile, twitch } from "./twitch.mjs";
14
+ import { TwitterOption, TwitterProfile, twitter } from "./twitter.mjs";
15
+ import { DropboxOptions, DropboxProfile, dropbox } from "./dropbox.mjs";
16
+ import { KickOptions, KickProfile, kick } from "./kick.mjs";
17
+ import { LinearOptions, LinearProfile, LinearUser, linear } from "./linear.mjs";
18
+ import { LinkedInOptions, LinkedInProfile, linkedin } from "./linkedin.mjs";
19
+ import { GitlabOptions, GitlabProfile, gitlab } from "./gitlab.mjs";
20
+ import { TiktokOptions, TiktokProfile, tiktok } from "./tiktok.mjs";
21
+ import { RedditOptions, RedditProfile, reddit } from "./reddit.mjs";
22
+ import { RobloxOptions, RobloxProfile, roblox } from "./roblox.mjs";
23
+ import { SalesforceOptions, SalesforceProfile, salesforce } from "./salesforce.mjs";
24
+ import { VkOption, VkProfile, vk } from "./vk.mjs";
25
+ import { AccountStatus, LoginType, PhoneNumber, PronounOption, ZoomOptions, ZoomProfile, zoom } from "./zoom.mjs";
26
+ import { NotionOptions, NotionProfile, notion } from "./notion.mjs";
27
+ import { KakaoOptions, KakaoProfile, kakao } from "./kakao.mjs";
28
+ import { NaverOptions, NaverProfile, naver } from "./naver.mjs";
29
+ import { LineIdTokenPayload, LineOptions, LineUserInfo, line } from "./line.mjs";
30
+ import { PaybinOptions, PaybinProfile, paybin } from "./paybin.mjs";
31
+ import { PayPalOptions, PayPalProfile, PayPalTokenResponse, paypal } from "./paypal.mjs";
32
+ import { PolarOptions, PolarProfile, polar } from "./polar.mjs";
33
+ import { RailwayOptions, RailwayProfile, railway } from "./railway.mjs";
34
+ import { VercelOptions, VercelProfile, vercel } from "./vercel.mjs";
35
+ import { WeChatOptions, WeChatProfile, wechat } from "./wechat.mjs";
36
+ import { AwaitableFunction } from "../types/helper.mjs";
37
+ import { OAuth2Tokens } from "../oauth2/oauth-provider.mjs";
38
+ import * as z from "zod";
39
+
40
+ //#region src/social-providers/index.d.ts
41
+ declare const socialProviders: {
42
+ apple: (options: AppleOptions) => {
43
+ id: "apple";
44
+ name: string;
45
+ createAuthorizationURL({
46
+ state,
47
+ scopes,
48
+ redirectURI
49
+ }: {
50
+ state: string;
51
+ codeVerifier: string;
52
+ scopes?: string[] | undefined;
53
+ redirectURI: string;
54
+ display?: string | undefined;
55
+ loginHint?: string | undefined;
56
+ }): Promise<URL>;
57
+ validateAuthorizationCode: ({
58
+ code,
59
+ codeVerifier,
60
+ redirectURI
61
+ }: {
62
+ code: string;
63
+ redirectURI: string;
64
+ codeVerifier?: string | undefined;
65
+ deviceId?: string | undefined;
66
+ }) => Promise<OAuth2Tokens>;
67
+ verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
68
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
69
+ getUserInfo(token: OAuth2Tokens & {
70
+ user?: {
71
+ name?: {
72
+ firstName?: string;
73
+ lastName?: string;
74
+ };
75
+ email?: string;
76
+ } | undefined;
77
+ }): Promise<{
78
+ user: {
79
+ id: string;
80
+ name?: string;
81
+ email?: string | null;
82
+ image?: string;
83
+ emailVerified: boolean;
84
+ [key: string]: any;
85
+ };
86
+ data: any;
87
+ } | null>;
88
+ options: AppleOptions;
89
+ };
90
+ atlassian: (options: AtlassianOptions) => {
91
+ id: "atlassian";
92
+ name: string;
93
+ createAuthorizationURL({
94
+ state,
95
+ scopes,
96
+ codeVerifier,
97
+ redirectURI
98
+ }: {
99
+ state: string;
100
+ codeVerifier: string;
101
+ scopes?: string[] | undefined;
102
+ redirectURI: string;
103
+ display?: string | undefined;
104
+ loginHint?: string | undefined;
105
+ }): Promise<URL>;
106
+ validateAuthorizationCode: ({
107
+ code,
108
+ codeVerifier,
109
+ redirectURI
110
+ }: {
111
+ code: string;
112
+ redirectURI: string;
113
+ codeVerifier?: string | undefined;
114
+ deviceId?: string | undefined;
115
+ }) => Promise<OAuth2Tokens>;
116
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
117
+ getUserInfo(token: OAuth2Tokens & {
118
+ user?: {
119
+ name?: {
120
+ firstName?: string;
121
+ lastName?: string;
122
+ };
123
+ email?: string;
124
+ } | undefined;
125
+ }): Promise<{
126
+ user: {
127
+ id: string;
128
+ name?: string;
129
+ email?: string | null;
130
+ image?: string;
131
+ emailVerified: boolean;
132
+ [key: string]: any;
133
+ };
134
+ data: any;
135
+ } | null>;
136
+ options: AtlassianOptions;
137
+ };
138
+ cognito: (options: CognitoOptions) => {
139
+ id: "cognito";
140
+ name: string;
141
+ createAuthorizationURL({
142
+ state,
143
+ scopes,
144
+ codeVerifier,
145
+ redirectURI
146
+ }: {
147
+ state: string;
148
+ codeVerifier: string;
149
+ scopes?: string[] | undefined;
150
+ redirectURI: string;
151
+ display?: string | undefined;
152
+ loginHint?: string | undefined;
153
+ }): Promise<URL>;
154
+ validateAuthorizationCode: ({
155
+ code,
156
+ codeVerifier,
157
+ redirectURI
158
+ }: {
159
+ code: string;
160
+ redirectURI: string;
161
+ codeVerifier?: string | undefined;
162
+ deviceId?: string | undefined;
163
+ }) => Promise<OAuth2Tokens>;
164
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
165
+ verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
166
+ getUserInfo(token: OAuth2Tokens & {
167
+ user?: {
168
+ name?: {
169
+ firstName?: string;
170
+ lastName?: string;
171
+ };
172
+ email?: string;
173
+ } | undefined;
174
+ }): Promise<{
175
+ user: {
176
+ id: string;
177
+ name?: string;
178
+ email?: string | null;
179
+ image?: string;
180
+ emailVerified: boolean;
181
+ [key: string]: any;
182
+ };
183
+ data: any;
184
+ } | null>;
185
+ options: CognitoOptions;
186
+ };
187
+ discord: (options: DiscordOptions) => {
188
+ id: "discord";
189
+ name: string;
190
+ createAuthorizationURL({
191
+ state,
192
+ scopes,
193
+ redirectURI
194
+ }: {
195
+ state: string;
196
+ codeVerifier: string;
197
+ scopes?: string[] | undefined;
198
+ redirectURI: string;
199
+ display?: string | undefined;
200
+ loginHint?: string | undefined;
201
+ }): URL;
202
+ validateAuthorizationCode: ({
203
+ code,
204
+ redirectURI
205
+ }: {
206
+ code: string;
207
+ redirectURI: string;
208
+ codeVerifier?: string | undefined;
209
+ deviceId?: string | undefined;
210
+ }) => Promise<OAuth2Tokens>;
211
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
212
+ getUserInfo(token: OAuth2Tokens & {
213
+ user?: {
214
+ name?: {
215
+ firstName?: string;
216
+ lastName?: string;
217
+ };
218
+ email?: string;
219
+ } | undefined;
220
+ }): Promise<{
221
+ user: {
222
+ id: string;
223
+ name?: string;
224
+ email?: string | null;
225
+ image?: string;
226
+ emailVerified: boolean;
227
+ [key: string]: any;
228
+ };
229
+ data: any;
230
+ } | null>;
231
+ options: DiscordOptions;
232
+ };
233
+ facebook: (options: FacebookOptions) => {
234
+ id: "facebook";
235
+ name: string;
236
+ createAuthorizationURL({
237
+ state,
238
+ scopes,
239
+ redirectURI,
240
+ loginHint
241
+ }: {
242
+ state: string;
243
+ codeVerifier: string;
244
+ scopes?: string[] | undefined;
245
+ redirectURI: string;
246
+ display?: string | undefined;
247
+ loginHint?: string | undefined;
248
+ }): Promise<URL>;
249
+ validateAuthorizationCode: ({
250
+ code,
251
+ redirectURI
252
+ }: {
253
+ code: string;
254
+ redirectURI: string;
255
+ codeVerifier?: string | undefined;
256
+ deviceId?: string | undefined;
257
+ }) => Promise<OAuth2Tokens>;
258
+ verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
259
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
260
+ getUserInfo(token: OAuth2Tokens & {
261
+ user?: {
262
+ name?: {
263
+ firstName?: string;
264
+ lastName?: string;
265
+ };
266
+ email?: string;
267
+ } | undefined;
268
+ }): Promise<{
269
+ user: {
270
+ id: string;
271
+ name?: string;
272
+ email?: string | null;
273
+ image?: string;
274
+ emailVerified: boolean;
275
+ [key: string]: any;
276
+ };
277
+ data: any;
278
+ } | null>;
279
+ options: FacebookOptions;
280
+ };
281
+ figma: (options: FigmaOptions) => {
282
+ id: "figma";
283
+ name: string;
284
+ createAuthorizationURL({
285
+ state,
286
+ scopes,
287
+ codeVerifier,
288
+ redirectURI
289
+ }: {
290
+ state: string;
291
+ codeVerifier: string;
292
+ scopes?: string[] | undefined;
293
+ redirectURI: string;
294
+ display?: string | undefined;
295
+ loginHint?: string | undefined;
296
+ }): Promise<URL>;
297
+ validateAuthorizationCode: ({
298
+ code,
299
+ codeVerifier,
300
+ redirectURI
301
+ }: {
302
+ code: string;
303
+ redirectURI: string;
304
+ codeVerifier?: string | undefined;
305
+ deviceId?: string | undefined;
306
+ }) => Promise<OAuth2Tokens>;
307
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
308
+ getUserInfo(token: OAuth2Tokens & {
309
+ user?: {
310
+ name?: {
311
+ firstName?: string;
312
+ lastName?: string;
313
+ };
314
+ email?: string;
315
+ } | undefined;
316
+ }): Promise<{
317
+ user: {
318
+ id: string;
319
+ name?: string;
320
+ email?: string | null;
321
+ image?: string;
322
+ emailVerified: boolean;
323
+ [key: string]: any;
324
+ };
325
+ data: any;
326
+ } | null>;
327
+ options: FigmaOptions;
328
+ };
329
+ github: (options: GithubOptions) => {
330
+ id: "github";
331
+ name: string;
332
+ createAuthorizationURL({
333
+ state,
334
+ scopes,
335
+ loginHint,
336
+ codeVerifier,
337
+ redirectURI
338
+ }: {
339
+ state: string;
340
+ codeVerifier: string;
341
+ scopes?: string[] | undefined;
342
+ redirectURI: string;
343
+ display?: string | undefined;
344
+ loginHint?: string | undefined;
345
+ }): Promise<URL>;
346
+ validateAuthorizationCode: ({
347
+ code,
348
+ codeVerifier,
349
+ redirectURI
350
+ }: {
351
+ code: string;
352
+ redirectURI: string;
353
+ codeVerifier?: string | undefined;
354
+ deviceId?: string | undefined;
355
+ }) => Promise<OAuth2Tokens | null>;
356
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
357
+ getUserInfo(token: OAuth2Tokens & {
358
+ user?: {
359
+ name?: {
360
+ firstName?: string;
361
+ lastName?: string;
362
+ };
363
+ email?: string;
364
+ } | undefined;
365
+ }): Promise<{
366
+ user: {
367
+ id: string;
368
+ name?: string;
369
+ email?: string | null;
370
+ image?: string;
371
+ emailVerified: boolean;
372
+ [key: string]: any;
373
+ };
374
+ data: any;
375
+ } | null>;
376
+ options: GithubOptions;
377
+ };
378
+ microsoft: (options: MicrosoftOptions) => {
379
+ id: "microsoft";
380
+ name: string;
381
+ createAuthorizationURL(data: {
382
+ state: string;
383
+ codeVerifier: string;
384
+ scopes?: string[] | undefined;
385
+ redirectURI: string;
386
+ display?: string | undefined;
387
+ loginHint?: string | undefined;
388
+ }): Promise<URL>;
389
+ validateAuthorizationCode({
390
+ code,
391
+ codeVerifier,
392
+ redirectURI
393
+ }: {
394
+ code: string;
395
+ redirectURI: string;
396
+ codeVerifier?: string | undefined;
397
+ deviceId?: string | undefined;
398
+ }): Promise<OAuth2Tokens>;
399
+ verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
400
+ getUserInfo(token: OAuth2Tokens & {
401
+ user?: {
402
+ name?: {
403
+ firstName?: string;
404
+ lastName?: string;
405
+ };
406
+ email?: string;
407
+ } | undefined;
408
+ }): Promise<{
409
+ user: {
410
+ id: string;
411
+ name?: string;
412
+ email?: string | null;
413
+ image?: string;
414
+ emailVerified: boolean;
415
+ [key: string]: any;
416
+ };
417
+ data: any;
418
+ } | null>;
419
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
420
+ options: MicrosoftOptions;
421
+ };
422
+ google: (options: GoogleOptions) => {
423
+ id: "google";
424
+ name: string;
425
+ createAuthorizationURL({
426
+ state,
427
+ scopes,
428
+ codeVerifier,
429
+ redirectURI,
430
+ loginHint,
431
+ display
432
+ }: {
433
+ state: string;
434
+ codeVerifier: string;
435
+ scopes?: string[] | undefined;
436
+ redirectURI: string;
437
+ display?: string | undefined;
438
+ loginHint?: string | undefined;
439
+ }): Promise<URL>;
440
+ validateAuthorizationCode: ({
441
+ code,
442
+ codeVerifier,
443
+ redirectURI
444
+ }: {
445
+ code: string;
446
+ redirectURI: string;
447
+ codeVerifier?: string | undefined;
448
+ deviceId?: string | undefined;
449
+ }) => Promise<OAuth2Tokens>;
450
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
451
+ verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
452
+ getUserInfo(token: OAuth2Tokens & {
453
+ user?: {
454
+ name?: {
455
+ firstName?: string;
456
+ lastName?: string;
457
+ };
458
+ email?: string;
459
+ } | undefined;
460
+ }): Promise<{
461
+ user: {
462
+ id: string;
463
+ name?: string;
464
+ email?: string | null;
465
+ image?: string;
466
+ emailVerified: boolean;
467
+ [key: string]: any;
468
+ };
469
+ data: any;
470
+ } | null>;
471
+ options: GoogleOptions;
472
+ };
473
+ huggingface: (options: HuggingFaceOptions) => {
474
+ id: "huggingface";
475
+ name: string;
476
+ createAuthorizationURL({
477
+ state,
478
+ scopes,
479
+ codeVerifier,
480
+ redirectURI
481
+ }: {
482
+ state: string;
483
+ codeVerifier: string;
484
+ scopes?: string[] | undefined;
485
+ redirectURI: string;
486
+ display?: string | undefined;
487
+ loginHint?: string | undefined;
488
+ }): Promise<URL>;
489
+ validateAuthorizationCode: ({
490
+ code,
491
+ codeVerifier,
492
+ redirectURI
493
+ }: {
494
+ code: string;
495
+ redirectURI: string;
496
+ codeVerifier?: string | undefined;
497
+ deviceId?: string | undefined;
498
+ }) => Promise<OAuth2Tokens>;
499
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
500
+ getUserInfo(token: OAuth2Tokens & {
501
+ user?: {
502
+ name?: {
503
+ firstName?: string;
504
+ lastName?: string;
505
+ };
506
+ email?: string;
507
+ } | undefined;
508
+ }): Promise<{
509
+ user: {
510
+ id: string;
511
+ name?: string;
512
+ email?: string | null;
513
+ image?: string;
514
+ emailVerified: boolean;
515
+ [key: string]: any;
516
+ };
517
+ data: any;
518
+ } | null>;
519
+ options: HuggingFaceOptions;
520
+ };
521
+ slack: (options: SlackOptions) => {
522
+ id: "slack";
523
+ name: string;
524
+ createAuthorizationURL({
525
+ state,
526
+ scopes,
527
+ redirectURI
528
+ }: {
529
+ state: string;
530
+ codeVerifier: string;
531
+ scopes?: string[] | undefined;
532
+ redirectURI: string;
533
+ display?: string | undefined;
534
+ loginHint?: string | undefined;
535
+ }): URL;
536
+ validateAuthorizationCode: ({
537
+ code,
538
+ redirectURI
539
+ }: {
540
+ code: string;
541
+ redirectURI: string;
542
+ codeVerifier?: string | undefined;
543
+ deviceId?: string | undefined;
544
+ }) => Promise<OAuth2Tokens>;
545
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
546
+ getUserInfo(token: OAuth2Tokens & {
547
+ user?: {
548
+ name?: {
549
+ firstName?: string;
550
+ lastName?: string;
551
+ };
552
+ email?: string;
553
+ } | undefined;
554
+ }): Promise<{
555
+ user: {
556
+ id: string;
557
+ name?: string;
558
+ email?: string | null;
559
+ image?: string;
560
+ emailVerified: boolean;
561
+ [key: string]: any;
562
+ };
563
+ data: any;
564
+ } | null>;
565
+ options: SlackOptions;
566
+ };
567
+ spotify: (options: SpotifyOptions) => {
568
+ id: "spotify";
569
+ name: string;
570
+ createAuthorizationURL({
571
+ state,
572
+ scopes,
573
+ codeVerifier,
574
+ redirectURI
575
+ }: {
576
+ state: string;
577
+ codeVerifier: string;
578
+ scopes?: string[] | undefined;
579
+ redirectURI: string;
580
+ display?: string | undefined;
581
+ loginHint?: string | undefined;
582
+ }): Promise<URL>;
583
+ validateAuthorizationCode: ({
584
+ code,
585
+ codeVerifier,
586
+ redirectURI
587
+ }: {
588
+ code: string;
589
+ redirectURI: string;
590
+ codeVerifier?: string | undefined;
591
+ deviceId?: string | undefined;
592
+ }) => Promise<OAuth2Tokens>;
593
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
594
+ getUserInfo(token: OAuth2Tokens & {
595
+ user?: {
596
+ name?: {
597
+ firstName?: string;
598
+ lastName?: string;
599
+ };
600
+ email?: string;
601
+ } | undefined;
602
+ }): Promise<{
603
+ user: {
604
+ id: string;
605
+ name?: string;
606
+ email?: string | null;
607
+ image?: string;
608
+ emailVerified: boolean;
609
+ [key: string]: any;
610
+ };
611
+ data: any;
612
+ } | null>;
613
+ options: SpotifyOptions;
614
+ };
615
+ twitch: (options: TwitchOptions) => {
616
+ id: "twitch";
617
+ name: string;
618
+ createAuthorizationURL({
619
+ state,
620
+ scopes,
621
+ redirectURI
622
+ }: {
623
+ state: string;
624
+ codeVerifier: string;
625
+ scopes?: string[] | undefined;
626
+ redirectURI: string;
627
+ display?: string | undefined;
628
+ loginHint?: string | undefined;
629
+ }): Promise<URL>;
630
+ validateAuthorizationCode: ({
631
+ code,
632
+ redirectURI
633
+ }: {
634
+ code: string;
635
+ redirectURI: string;
636
+ codeVerifier?: string | undefined;
637
+ deviceId?: string | undefined;
638
+ }) => Promise<OAuth2Tokens>;
639
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
640
+ getUserInfo(token: OAuth2Tokens & {
641
+ user?: {
642
+ name?: {
643
+ firstName?: string;
644
+ lastName?: string;
645
+ };
646
+ email?: string;
647
+ } | undefined;
648
+ }): Promise<{
649
+ user: {
650
+ id: string;
651
+ name?: string;
652
+ email?: string | null;
653
+ image?: string;
654
+ emailVerified: boolean;
655
+ [key: string]: any;
656
+ };
657
+ data: any;
658
+ } | null>;
659
+ options: TwitchOptions;
660
+ };
661
+ twitter: (options: TwitterOption) => {
662
+ id: "twitter";
663
+ name: string;
664
+ createAuthorizationURL(data: {
665
+ state: string;
666
+ codeVerifier: string;
667
+ scopes?: string[] | undefined;
668
+ redirectURI: string;
669
+ display?: string | undefined;
670
+ loginHint?: string | undefined;
671
+ }): Promise<URL>;
672
+ validateAuthorizationCode: ({
673
+ code,
674
+ codeVerifier,
675
+ redirectURI
676
+ }: {
677
+ code: string;
678
+ redirectURI: string;
679
+ codeVerifier?: string | undefined;
680
+ deviceId?: string | undefined;
681
+ }) => Promise<OAuth2Tokens>;
682
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
683
+ getUserInfo(token: OAuth2Tokens & {
684
+ user?: {
685
+ name?: {
686
+ firstName?: string;
687
+ lastName?: string;
688
+ };
689
+ email?: string;
690
+ } | undefined;
691
+ }): Promise<{
692
+ user: {
693
+ id: string;
694
+ name?: string;
695
+ email?: string | null;
696
+ image?: string;
697
+ emailVerified: boolean;
698
+ [key: string]: any;
699
+ };
700
+ data: any;
701
+ } | null>;
702
+ options: TwitterOption;
703
+ };
704
+ dropbox: (options: DropboxOptions) => {
705
+ id: "dropbox";
706
+ name: string;
707
+ createAuthorizationURL: ({
708
+ state,
709
+ scopes,
710
+ codeVerifier,
711
+ redirectURI
712
+ }: {
713
+ state: string;
714
+ codeVerifier: string;
715
+ scopes?: string[] | undefined;
716
+ redirectURI: string;
717
+ display?: string | undefined;
718
+ loginHint?: string | undefined;
719
+ }) => Promise<URL>;
720
+ validateAuthorizationCode: ({
721
+ code,
722
+ codeVerifier,
723
+ redirectURI
724
+ }: {
725
+ code: string;
726
+ redirectURI: string;
727
+ codeVerifier?: string | undefined;
728
+ deviceId?: string | undefined;
729
+ }) => Promise<OAuth2Tokens>;
730
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
731
+ getUserInfo(token: OAuth2Tokens & {
732
+ user?: {
733
+ name?: {
734
+ firstName?: string;
735
+ lastName?: string;
736
+ };
737
+ email?: string;
738
+ } | undefined;
739
+ }): Promise<{
740
+ user: {
741
+ id: string;
742
+ name?: string;
743
+ email?: string | null;
744
+ image?: string;
745
+ emailVerified: boolean;
746
+ [key: string]: any;
747
+ };
748
+ data: any;
749
+ } | null>;
750
+ options: DropboxOptions;
751
+ };
752
+ kick: (options: KickOptions) => {
753
+ id: "kick";
754
+ name: string;
755
+ createAuthorizationURL({
756
+ state,
757
+ scopes,
758
+ redirectURI,
759
+ codeVerifier
760
+ }: {
761
+ state: string;
762
+ codeVerifier: string;
763
+ scopes?: string[] | undefined;
764
+ redirectURI: string;
765
+ display?: string | undefined;
766
+ loginHint?: string | undefined;
767
+ }): Promise<URL>;
768
+ validateAuthorizationCode({
769
+ code,
770
+ redirectURI,
771
+ codeVerifier
772
+ }: {
773
+ code: string;
774
+ redirectURI: string;
775
+ codeVerifier?: string | undefined;
776
+ deviceId?: string | undefined;
777
+ }): Promise<OAuth2Tokens>;
778
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
779
+ getUserInfo(token: OAuth2Tokens & {
780
+ user?: {
781
+ name?: {
782
+ firstName?: string;
783
+ lastName?: string;
784
+ };
785
+ email?: string;
786
+ } | undefined;
787
+ }): Promise<{
788
+ user: {
789
+ id: string;
790
+ name?: string;
791
+ email?: string | null;
792
+ image?: string;
793
+ emailVerified: boolean;
794
+ [key: string]: any;
795
+ };
796
+ data: any;
797
+ } | null>;
798
+ options: KickOptions;
799
+ };
800
+ linear: (options: LinearOptions) => {
801
+ id: "linear";
802
+ name: string;
803
+ createAuthorizationURL({
804
+ state,
805
+ scopes,
806
+ loginHint,
807
+ redirectURI
808
+ }: {
809
+ state: string;
810
+ codeVerifier: string;
811
+ scopes?: string[] | undefined;
812
+ redirectURI: string;
813
+ display?: string | undefined;
814
+ loginHint?: string | undefined;
815
+ }): Promise<URL>;
816
+ validateAuthorizationCode: ({
817
+ code,
818
+ redirectURI
819
+ }: {
820
+ code: string;
821
+ redirectURI: string;
822
+ codeVerifier?: string | undefined;
823
+ deviceId?: string | undefined;
824
+ }) => Promise<OAuth2Tokens>;
825
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
826
+ getUserInfo(token: OAuth2Tokens & {
827
+ user?: {
828
+ name?: {
829
+ firstName?: string;
830
+ lastName?: string;
831
+ };
832
+ email?: string;
833
+ } | undefined;
834
+ }): Promise<{
835
+ user: {
836
+ id: string;
837
+ name?: string;
838
+ email?: string | null;
839
+ image?: string;
840
+ emailVerified: boolean;
841
+ [key: string]: any;
842
+ };
843
+ data: any;
844
+ } | null>;
845
+ options: LinearOptions;
846
+ };
847
+ linkedin: (options: LinkedInOptions) => {
848
+ id: "linkedin";
849
+ name: string;
850
+ createAuthorizationURL: ({
851
+ state,
852
+ scopes,
853
+ redirectURI,
854
+ loginHint
855
+ }: {
856
+ state: string;
857
+ codeVerifier: string;
858
+ scopes?: string[] | undefined;
859
+ redirectURI: string;
860
+ display?: string | undefined;
861
+ loginHint?: string | undefined;
862
+ }) => Promise<URL>;
863
+ validateAuthorizationCode: ({
864
+ code,
865
+ redirectURI
866
+ }: {
867
+ code: string;
868
+ redirectURI: string;
869
+ codeVerifier?: string | undefined;
870
+ deviceId?: string | undefined;
871
+ }) => Promise<OAuth2Tokens>;
872
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
873
+ getUserInfo(token: OAuth2Tokens & {
874
+ user?: {
875
+ name?: {
876
+ firstName?: string;
877
+ lastName?: string;
878
+ };
879
+ email?: string;
880
+ } | undefined;
881
+ }): Promise<{
882
+ user: {
883
+ id: string;
884
+ name?: string;
885
+ email?: string | null;
886
+ image?: string;
887
+ emailVerified: boolean;
888
+ [key: string]: any;
889
+ };
890
+ data: any;
891
+ } | null>;
892
+ options: LinkedInOptions;
893
+ };
894
+ gitlab: (options: GitlabOptions) => {
895
+ id: "gitlab";
896
+ name: string;
897
+ createAuthorizationURL: ({
898
+ state,
899
+ scopes,
900
+ codeVerifier,
901
+ loginHint,
902
+ redirectURI
903
+ }: {
904
+ state: string;
905
+ codeVerifier: string;
906
+ scopes?: string[] | undefined;
907
+ redirectURI: string;
908
+ display?: string | undefined;
909
+ loginHint?: string | undefined;
910
+ }) => Promise<URL>;
911
+ validateAuthorizationCode: ({
912
+ code,
913
+ redirectURI,
914
+ codeVerifier
915
+ }: {
916
+ code: string;
917
+ redirectURI: string;
918
+ codeVerifier?: string | undefined;
919
+ deviceId?: string | undefined;
920
+ }) => Promise<OAuth2Tokens>;
921
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
922
+ getUserInfo(token: OAuth2Tokens & {
923
+ user?: {
924
+ name?: {
925
+ firstName?: string;
926
+ lastName?: string;
927
+ };
928
+ email?: string;
929
+ } | undefined;
930
+ }): Promise<{
931
+ user: {
932
+ id: string;
933
+ name?: string;
934
+ email?: string | null;
935
+ image?: string;
936
+ emailVerified: boolean;
937
+ [key: string]: any;
938
+ };
939
+ data: any;
940
+ } | {
941
+ user: {
942
+ id: number;
943
+ name: string;
944
+ email: string;
945
+ image: string;
946
+ emailVerified: boolean;
947
+ } | {
948
+ id: string | number;
949
+ name: string;
950
+ email: string | null;
951
+ image: string;
952
+ emailVerified: boolean;
953
+ } | {
954
+ id: string | number;
955
+ name: string;
956
+ email: string | null;
957
+ image: string;
958
+ emailVerified: boolean;
959
+ };
960
+ data: GitlabProfile;
961
+ } | null>;
962
+ options: GitlabOptions;
963
+ };
964
+ tiktok: (options: TiktokOptions) => {
965
+ id: "tiktok";
966
+ name: string;
967
+ createAuthorizationURL({
968
+ state,
969
+ scopes,
970
+ redirectURI
971
+ }: {
972
+ state: string;
973
+ codeVerifier: string;
974
+ scopes?: string[] | undefined;
975
+ redirectURI: string;
976
+ display?: string | undefined;
977
+ loginHint?: string | undefined;
978
+ }): URL;
979
+ validateAuthorizationCode: ({
980
+ code,
981
+ redirectURI
982
+ }: {
983
+ code: string;
984
+ redirectURI: string;
985
+ codeVerifier?: string | undefined;
986
+ deviceId?: string | undefined;
987
+ }) => Promise<OAuth2Tokens>;
988
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
989
+ getUserInfo(token: OAuth2Tokens & {
990
+ user?: {
991
+ name?: {
992
+ firstName?: string;
993
+ lastName?: string;
994
+ };
995
+ email?: string;
996
+ } | undefined;
997
+ }): Promise<{
998
+ user: {
999
+ id: string;
1000
+ name?: string;
1001
+ email?: string | null;
1002
+ image?: string;
1003
+ emailVerified: boolean;
1004
+ [key: string]: any;
1005
+ };
1006
+ data: any;
1007
+ } | null>;
1008
+ options: TiktokOptions;
1009
+ };
1010
+ reddit: (options: RedditOptions) => {
1011
+ id: "reddit";
1012
+ name: string;
1013
+ createAuthorizationURL({
1014
+ state,
1015
+ scopes,
1016
+ redirectURI
1017
+ }: {
1018
+ state: string;
1019
+ codeVerifier: string;
1020
+ scopes?: string[] | undefined;
1021
+ redirectURI: string;
1022
+ display?: string | undefined;
1023
+ loginHint?: string | undefined;
1024
+ }): Promise<URL>;
1025
+ validateAuthorizationCode: ({
1026
+ code,
1027
+ redirectURI
1028
+ }: {
1029
+ code: string;
1030
+ redirectURI: string;
1031
+ codeVerifier?: string | undefined;
1032
+ deviceId?: string | undefined;
1033
+ }) => Promise<OAuth2Tokens>;
1034
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1035
+ getUserInfo(token: OAuth2Tokens & {
1036
+ user?: {
1037
+ name?: {
1038
+ firstName?: string;
1039
+ lastName?: string;
1040
+ };
1041
+ email?: string;
1042
+ } | undefined;
1043
+ }): Promise<{
1044
+ user: {
1045
+ id: string;
1046
+ name?: string;
1047
+ email?: string | null;
1048
+ image?: string;
1049
+ emailVerified: boolean;
1050
+ [key: string]: any;
1051
+ };
1052
+ data: any;
1053
+ } | null>;
1054
+ options: RedditOptions;
1055
+ };
1056
+ roblox: (options: RobloxOptions) => {
1057
+ id: "roblox";
1058
+ name: string;
1059
+ createAuthorizationURL({
1060
+ state,
1061
+ scopes,
1062
+ redirectURI
1063
+ }: {
1064
+ state: string;
1065
+ codeVerifier: string;
1066
+ scopes?: string[] | undefined;
1067
+ redirectURI: string;
1068
+ display?: string | undefined;
1069
+ loginHint?: string | undefined;
1070
+ }): URL;
1071
+ validateAuthorizationCode: ({
1072
+ code,
1073
+ redirectURI
1074
+ }: {
1075
+ code: string;
1076
+ redirectURI: string;
1077
+ codeVerifier?: string | undefined;
1078
+ deviceId?: string | undefined;
1079
+ }) => Promise<OAuth2Tokens>;
1080
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1081
+ getUserInfo(token: OAuth2Tokens & {
1082
+ user?: {
1083
+ name?: {
1084
+ firstName?: string;
1085
+ lastName?: string;
1086
+ };
1087
+ email?: string;
1088
+ } | undefined;
1089
+ }): Promise<{
1090
+ user: {
1091
+ id: string;
1092
+ name?: string;
1093
+ email?: string | null;
1094
+ image?: string;
1095
+ emailVerified: boolean;
1096
+ [key: string]: any;
1097
+ };
1098
+ data: any;
1099
+ } | null>;
1100
+ options: RobloxOptions;
1101
+ };
1102
+ salesforce: (options: SalesforceOptions) => {
1103
+ id: "salesforce";
1104
+ name: string;
1105
+ createAuthorizationURL({
1106
+ state,
1107
+ scopes,
1108
+ codeVerifier,
1109
+ redirectURI
1110
+ }: {
1111
+ state: string;
1112
+ codeVerifier: string;
1113
+ scopes?: string[] | undefined;
1114
+ redirectURI: string;
1115
+ display?: string | undefined;
1116
+ loginHint?: string | undefined;
1117
+ }): Promise<URL>;
1118
+ validateAuthorizationCode: ({
1119
+ code,
1120
+ codeVerifier,
1121
+ redirectURI
1122
+ }: {
1123
+ code: string;
1124
+ redirectURI: string;
1125
+ codeVerifier?: string | undefined;
1126
+ deviceId?: string | undefined;
1127
+ }) => Promise<OAuth2Tokens>;
1128
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1129
+ getUserInfo(token: OAuth2Tokens & {
1130
+ user?: {
1131
+ name?: {
1132
+ firstName?: string;
1133
+ lastName?: string;
1134
+ };
1135
+ email?: string;
1136
+ } | undefined;
1137
+ }): Promise<{
1138
+ user: {
1139
+ id: string;
1140
+ name?: string;
1141
+ email?: string | null;
1142
+ image?: string;
1143
+ emailVerified: boolean;
1144
+ [key: string]: any;
1145
+ };
1146
+ data: any;
1147
+ } | null>;
1148
+ options: SalesforceOptions;
1149
+ };
1150
+ vk: (options: VkOption) => {
1151
+ id: "vk";
1152
+ name: string;
1153
+ createAuthorizationURL({
1154
+ state,
1155
+ scopes,
1156
+ codeVerifier,
1157
+ redirectURI
1158
+ }: {
1159
+ state: string;
1160
+ codeVerifier: string;
1161
+ scopes?: string[] | undefined;
1162
+ redirectURI: string;
1163
+ display?: string | undefined;
1164
+ loginHint?: string | undefined;
1165
+ }): Promise<URL>;
1166
+ validateAuthorizationCode: ({
1167
+ code,
1168
+ codeVerifier,
1169
+ redirectURI,
1170
+ deviceId
1171
+ }: {
1172
+ code: string;
1173
+ redirectURI: string;
1174
+ codeVerifier?: string | undefined;
1175
+ deviceId?: string | undefined;
1176
+ }) => Promise<OAuth2Tokens>;
1177
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1178
+ getUserInfo(data: OAuth2Tokens & {
1179
+ user?: {
1180
+ name?: {
1181
+ firstName?: string;
1182
+ lastName?: string;
1183
+ };
1184
+ email?: string;
1185
+ } | undefined;
1186
+ }): Promise<{
1187
+ user: {
1188
+ id: string;
1189
+ name?: string;
1190
+ email?: string | null;
1191
+ image?: string;
1192
+ emailVerified: boolean;
1193
+ [key: string]: any;
1194
+ };
1195
+ data: any;
1196
+ } | null>;
1197
+ options: VkOption;
1198
+ };
1199
+ zoom: (userOptions: ZoomOptions) => {
1200
+ id: "zoom";
1201
+ name: string;
1202
+ createAuthorizationURL: ({
1203
+ state,
1204
+ redirectURI,
1205
+ codeVerifier
1206
+ }: {
1207
+ state: string;
1208
+ codeVerifier: string;
1209
+ scopes?: string[] | undefined;
1210
+ redirectURI: string;
1211
+ display?: string | undefined;
1212
+ loginHint?: string | undefined;
1213
+ }) => Promise<URL>;
1214
+ validateAuthorizationCode: ({
1215
+ code,
1216
+ redirectURI,
1217
+ codeVerifier
1218
+ }: {
1219
+ code: string;
1220
+ redirectURI: string;
1221
+ codeVerifier?: string | undefined;
1222
+ deviceId?: string | undefined;
1223
+ }) => Promise<OAuth2Tokens>;
1224
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1225
+ getUserInfo(token: OAuth2Tokens & {
1226
+ user?: {
1227
+ name?: {
1228
+ firstName?: string;
1229
+ lastName?: string;
1230
+ };
1231
+ email?: string;
1232
+ } | undefined;
1233
+ }): Promise<{
1234
+ user: {
1235
+ id: string;
1236
+ name?: string;
1237
+ email?: string | null;
1238
+ image?: string;
1239
+ emailVerified: boolean;
1240
+ [key: string]: any;
1241
+ };
1242
+ data: any;
1243
+ } | null>;
1244
+ };
1245
+ notion: (options: NotionOptions) => {
1246
+ id: "notion";
1247
+ name: string;
1248
+ createAuthorizationURL({
1249
+ state,
1250
+ scopes,
1251
+ loginHint,
1252
+ redirectURI
1253
+ }: {
1254
+ state: string;
1255
+ codeVerifier: string;
1256
+ scopes?: string[] | undefined;
1257
+ redirectURI: string;
1258
+ display?: string | undefined;
1259
+ loginHint?: string | undefined;
1260
+ }): Promise<URL>;
1261
+ validateAuthorizationCode: ({
1262
+ code,
1263
+ redirectURI
1264
+ }: {
1265
+ code: string;
1266
+ redirectURI: string;
1267
+ codeVerifier?: string | undefined;
1268
+ deviceId?: string | undefined;
1269
+ }) => Promise<OAuth2Tokens>;
1270
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1271
+ getUserInfo(token: OAuth2Tokens & {
1272
+ user?: {
1273
+ name?: {
1274
+ firstName?: string;
1275
+ lastName?: string;
1276
+ };
1277
+ email?: string;
1278
+ } | undefined;
1279
+ }): Promise<{
1280
+ user: {
1281
+ id: string;
1282
+ name?: string;
1283
+ email?: string | null;
1284
+ image?: string;
1285
+ emailVerified: boolean;
1286
+ [key: string]: any;
1287
+ };
1288
+ data: any;
1289
+ } | null>;
1290
+ options: NotionOptions;
1291
+ };
1292
+ kakao: (options: KakaoOptions) => {
1293
+ id: "kakao";
1294
+ name: string;
1295
+ createAuthorizationURL({
1296
+ state,
1297
+ scopes,
1298
+ redirectURI
1299
+ }: {
1300
+ state: string;
1301
+ codeVerifier: string;
1302
+ scopes?: string[] | undefined;
1303
+ redirectURI: string;
1304
+ display?: string | undefined;
1305
+ loginHint?: string | undefined;
1306
+ }): Promise<URL>;
1307
+ validateAuthorizationCode: ({
1308
+ code,
1309
+ redirectURI
1310
+ }: {
1311
+ code: string;
1312
+ redirectURI: string;
1313
+ codeVerifier?: string | undefined;
1314
+ deviceId?: string | undefined;
1315
+ }) => Promise<OAuth2Tokens>;
1316
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1317
+ getUserInfo(token: OAuth2Tokens & {
1318
+ user?: {
1319
+ name?: {
1320
+ firstName?: string;
1321
+ lastName?: string;
1322
+ };
1323
+ email?: string;
1324
+ } | undefined;
1325
+ }): Promise<{
1326
+ user: {
1327
+ id: string;
1328
+ name?: string;
1329
+ email?: string | null;
1330
+ image?: string;
1331
+ emailVerified: boolean;
1332
+ [key: string]: any;
1333
+ };
1334
+ data: any;
1335
+ } | {
1336
+ user: {
1337
+ id: string;
1338
+ name: string;
1339
+ email: string | undefined;
1340
+ image: string | undefined;
1341
+ emailVerified: boolean;
1342
+ } | {
1343
+ id: string;
1344
+ name: string;
1345
+ email: string | null;
1346
+ image: string;
1347
+ emailVerified: boolean;
1348
+ } | {
1349
+ id: string;
1350
+ name: string;
1351
+ email: string | null;
1352
+ image: string;
1353
+ emailVerified: boolean;
1354
+ };
1355
+ data: KakaoProfile;
1356
+ } | null>;
1357
+ options: KakaoOptions;
1358
+ };
1359
+ naver: (options: NaverOptions) => {
1360
+ id: "naver";
1361
+ name: string;
1362
+ createAuthorizationURL({
1363
+ state,
1364
+ scopes,
1365
+ redirectURI
1366
+ }: {
1367
+ state: string;
1368
+ codeVerifier: string;
1369
+ scopes?: string[] | undefined;
1370
+ redirectURI: string;
1371
+ display?: string | undefined;
1372
+ loginHint?: string | undefined;
1373
+ }): Promise<URL>;
1374
+ validateAuthorizationCode: ({
1375
+ code,
1376
+ redirectURI
1377
+ }: {
1378
+ code: string;
1379
+ redirectURI: string;
1380
+ codeVerifier?: string | undefined;
1381
+ deviceId?: string | undefined;
1382
+ }) => Promise<OAuth2Tokens>;
1383
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1384
+ getUserInfo(token: OAuth2Tokens & {
1385
+ user?: {
1386
+ name?: {
1387
+ firstName?: string;
1388
+ lastName?: string;
1389
+ };
1390
+ email?: string;
1391
+ } | undefined;
1392
+ }): Promise<{
1393
+ user: {
1394
+ id: string;
1395
+ name?: string;
1396
+ email?: string | null;
1397
+ image?: string;
1398
+ emailVerified: boolean;
1399
+ [key: string]: any;
1400
+ };
1401
+ data: any;
1402
+ } | {
1403
+ user: {
1404
+ id: string;
1405
+ name: string;
1406
+ email: string;
1407
+ image: string;
1408
+ emailVerified: boolean;
1409
+ } | {
1410
+ id: string;
1411
+ name: string;
1412
+ email: string | null;
1413
+ image: string;
1414
+ emailVerified: boolean;
1415
+ } | {
1416
+ id: string;
1417
+ name: string;
1418
+ email: string | null;
1419
+ image: string;
1420
+ emailVerified: boolean;
1421
+ };
1422
+ data: NaverProfile;
1423
+ } | null>;
1424
+ options: NaverOptions;
1425
+ };
1426
+ line: (options: LineOptions) => {
1427
+ id: "line";
1428
+ name: string;
1429
+ createAuthorizationURL({
1430
+ state,
1431
+ scopes,
1432
+ codeVerifier,
1433
+ redirectURI,
1434
+ loginHint
1435
+ }: {
1436
+ state: string;
1437
+ codeVerifier: string;
1438
+ scopes?: string[] | undefined;
1439
+ redirectURI: string;
1440
+ display?: string | undefined;
1441
+ loginHint?: string | undefined;
1442
+ }): Promise<URL>;
1443
+ validateAuthorizationCode: ({
1444
+ code,
1445
+ codeVerifier,
1446
+ redirectURI
1447
+ }: {
1448
+ code: string;
1449
+ redirectURI: string;
1450
+ codeVerifier?: string | undefined;
1451
+ deviceId?: string | undefined;
1452
+ }) => Promise<OAuth2Tokens>;
1453
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1454
+ verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
1455
+ getUserInfo(token: OAuth2Tokens & {
1456
+ user?: {
1457
+ name?: {
1458
+ firstName?: string;
1459
+ lastName?: string;
1460
+ };
1461
+ email?: string;
1462
+ } | undefined;
1463
+ }): Promise<{
1464
+ user: {
1465
+ id: string;
1466
+ name?: string;
1467
+ email?: string | null;
1468
+ image?: string;
1469
+ emailVerified: boolean;
1470
+ [key: string]: any;
1471
+ };
1472
+ data: any;
1473
+ } | {
1474
+ user: {
1475
+ id: any;
1476
+ name: any;
1477
+ email: any;
1478
+ image: any;
1479
+ emailVerified: false;
1480
+ } | {
1481
+ id: any;
1482
+ name: any;
1483
+ email: any;
1484
+ image: any;
1485
+ emailVerified: boolean;
1486
+ } | {
1487
+ id: any;
1488
+ name: any;
1489
+ email: any;
1490
+ image: any;
1491
+ emailVerified: boolean;
1492
+ };
1493
+ data: any;
1494
+ } | null>;
1495
+ options: LineOptions;
1496
+ };
1497
+ paybin: (options: PaybinOptions) => {
1498
+ id: "paybin";
1499
+ name: string;
1500
+ createAuthorizationURL({
1501
+ state,
1502
+ scopes,
1503
+ codeVerifier,
1504
+ redirectURI,
1505
+ loginHint
1506
+ }: {
1507
+ state: string;
1508
+ codeVerifier: string;
1509
+ scopes?: string[] | undefined;
1510
+ redirectURI: string;
1511
+ display?: string | undefined;
1512
+ loginHint?: string | undefined;
1513
+ }): Promise<URL>;
1514
+ validateAuthorizationCode: ({
1515
+ code,
1516
+ codeVerifier,
1517
+ redirectURI
1518
+ }: {
1519
+ code: string;
1520
+ redirectURI: string;
1521
+ codeVerifier?: string | undefined;
1522
+ deviceId?: string | undefined;
1523
+ }) => Promise<OAuth2Tokens>;
1524
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1525
+ getUserInfo(token: OAuth2Tokens & {
1526
+ user?: {
1527
+ name?: {
1528
+ firstName?: string;
1529
+ lastName?: string;
1530
+ };
1531
+ email?: string;
1532
+ } | undefined;
1533
+ }): Promise<{
1534
+ user: {
1535
+ id: string;
1536
+ name?: string;
1537
+ email?: string | null;
1538
+ image?: string;
1539
+ emailVerified: boolean;
1540
+ [key: string]: any;
1541
+ };
1542
+ data: any;
1543
+ } | null>;
1544
+ options: PaybinOptions;
1545
+ };
1546
+ paypal: (options: PayPalOptions) => {
1547
+ id: "paypal";
1548
+ name: string;
1549
+ createAuthorizationURL({
1550
+ state,
1551
+ codeVerifier,
1552
+ redirectURI
1553
+ }: {
1554
+ state: string;
1555
+ codeVerifier: string;
1556
+ scopes?: string[] | undefined;
1557
+ redirectURI: string;
1558
+ display?: string | undefined;
1559
+ loginHint?: string | undefined;
1560
+ }): Promise<URL>;
1561
+ validateAuthorizationCode: ({
1562
+ code,
1563
+ redirectURI
1564
+ }: {
1565
+ code: string;
1566
+ redirectURI: string;
1567
+ codeVerifier?: string | undefined;
1568
+ deviceId?: string | undefined;
1569
+ }) => Promise<{
1570
+ accessToken: string;
1571
+ refreshToken: string | undefined;
1572
+ accessTokenExpiresAt: Date | undefined;
1573
+ idToken: string | undefined;
1574
+ }>;
1575
+ refreshAccessToken: ((refreshToken: string) => Promise<OAuth2Tokens>) | ((refreshToken: string) => Promise<{
1576
+ accessToken: any;
1577
+ refreshToken: any;
1578
+ accessTokenExpiresAt: Date | undefined;
1579
+ }>);
1580
+ verifyIdToken(token: string, nonce: string | undefined): Promise<boolean>;
1581
+ getUserInfo(token: OAuth2Tokens & {
1582
+ user?: {
1583
+ name?: {
1584
+ firstName?: string;
1585
+ lastName?: string;
1586
+ };
1587
+ email?: string;
1588
+ } | undefined;
1589
+ }): Promise<{
1590
+ user: {
1591
+ id: string;
1592
+ name?: string;
1593
+ email?: string | null;
1594
+ image?: string;
1595
+ emailVerified: boolean;
1596
+ [key: string]: any;
1597
+ };
1598
+ data: any;
1599
+ } | {
1600
+ user: {
1601
+ id: string;
1602
+ name: string;
1603
+ email: string;
1604
+ image: string | undefined;
1605
+ emailVerified: boolean;
1606
+ } | {
1607
+ id: string;
1608
+ name: string;
1609
+ email: string | null;
1610
+ image: string;
1611
+ emailVerified: boolean;
1612
+ } | {
1613
+ id: string;
1614
+ name: string;
1615
+ email: string | null;
1616
+ image: string;
1617
+ emailVerified: boolean;
1618
+ };
1619
+ data: PayPalProfile;
1620
+ } | null>;
1621
+ options: PayPalOptions;
1622
+ };
1623
+ polar: (options: PolarOptions) => {
1624
+ id: "polar";
1625
+ name: string;
1626
+ createAuthorizationURL({
1627
+ state,
1628
+ scopes,
1629
+ codeVerifier,
1630
+ redirectURI
1631
+ }: {
1632
+ state: string;
1633
+ codeVerifier: string;
1634
+ scopes?: string[] | undefined;
1635
+ redirectURI: string;
1636
+ display?: string | undefined;
1637
+ loginHint?: string | undefined;
1638
+ }): Promise<URL>;
1639
+ validateAuthorizationCode: ({
1640
+ code,
1641
+ codeVerifier,
1642
+ redirectURI
1643
+ }: {
1644
+ code: string;
1645
+ redirectURI: string;
1646
+ codeVerifier?: string | undefined;
1647
+ deviceId?: string | undefined;
1648
+ }) => Promise<OAuth2Tokens>;
1649
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1650
+ getUserInfo(token: OAuth2Tokens & {
1651
+ user?: {
1652
+ name?: {
1653
+ firstName?: string;
1654
+ lastName?: string;
1655
+ };
1656
+ email?: string;
1657
+ } | undefined;
1658
+ }): Promise<{
1659
+ user: {
1660
+ id: string;
1661
+ name?: string;
1662
+ email?: string | null;
1663
+ image?: string;
1664
+ emailVerified: boolean;
1665
+ [key: string]: any;
1666
+ };
1667
+ data: any;
1668
+ } | null>;
1669
+ options: PolarOptions;
1670
+ };
1671
+ railway: (options: RailwayOptions) => {
1672
+ id: "railway";
1673
+ name: string;
1674
+ createAuthorizationURL({
1675
+ state,
1676
+ scopes,
1677
+ codeVerifier,
1678
+ redirectURI
1679
+ }: {
1680
+ state: string;
1681
+ codeVerifier: string;
1682
+ scopes?: string[] | undefined;
1683
+ redirectURI: string;
1684
+ display?: string | undefined;
1685
+ loginHint?: string | undefined;
1686
+ }): Promise<URL>;
1687
+ validateAuthorizationCode: ({
1688
+ code,
1689
+ codeVerifier,
1690
+ redirectURI
1691
+ }: {
1692
+ code: string;
1693
+ redirectURI: string;
1694
+ codeVerifier?: string | undefined;
1695
+ deviceId?: string | undefined;
1696
+ }) => Promise<OAuth2Tokens>;
1697
+ refreshAccessToken: (refreshToken: string) => Promise<OAuth2Tokens>;
1698
+ getUserInfo(token: OAuth2Tokens & {
1699
+ user?: {
1700
+ name?: {
1701
+ firstName?: string;
1702
+ lastName?: string;
1703
+ };
1704
+ email?: string;
1705
+ } | undefined;
1706
+ }): Promise<{
1707
+ user: {
1708
+ id: string;
1709
+ name?: string;
1710
+ email?: string | null;
1711
+ image?: string;
1712
+ emailVerified: boolean;
1713
+ [key: string]: any;
1714
+ };
1715
+ data: any;
1716
+ } | null>;
1717
+ options: RailwayOptions;
1718
+ };
1719
+ vercel: (options: VercelOptions) => {
1720
+ id: "vercel";
1721
+ name: string;
1722
+ createAuthorizationURL({
1723
+ state,
1724
+ scopes,
1725
+ codeVerifier,
1726
+ redirectURI
1727
+ }: {
1728
+ state: string;
1729
+ codeVerifier: string;
1730
+ scopes?: string[] | undefined;
1731
+ redirectURI: string;
1732
+ display?: string | undefined;
1733
+ loginHint?: string | undefined;
1734
+ }): Promise<URL>;
1735
+ validateAuthorizationCode: ({
1736
+ code,
1737
+ codeVerifier,
1738
+ redirectURI
1739
+ }: {
1740
+ code: string;
1741
+ redirectURI: string;
1742
+ codeVerifier?: string | undefined;
1743
+ deviceId?: string | undefined;
1744
+ }) => Promise<OAuth2Tokens>;
1745
+ getUserInfo(token: OAuth2Tokens & {
1746
+ user?: {
1747
+ name?: {
1748
+ firstName?: string;
1749
+ lastName?: string;
1750
+ };
1751
+ email?: string;
1752
+ } | undefined;
1753
+ }): Promise<{
1754
+ user: {
1755
+ id: string;
1756
+ name?: string;
1757
+ email?: string | null;
1758
+ image?: string;
1759
+ emailVerified: boolean;
1760
+ [key: string]: any;
1761
+ };
1762
+ data: any;
1763
+ } | null>;
1764
+ options: VercelOptions;
1765
+ };
1766
+ wechat: (options: WeChatOptions) => {
1767
+ id: "wechat";
1768
+ name: string;
1769
+ createAuthorizationURL({
1770
+ state,
1771
+ scopes,
1772
+ redirectURI
1773
+ }: {
1774
+ state: string;
1775
+ codeVerifier: string;
1776
+ scopes?: string[] | undefined;
1777
+ redirectURI: string;
1778
+ display?: string | undefined;
1779
+ loginHint?: string | undefined;
1780
+ }): URL;
1781
+ validateAuthorizationCode: ({
1782
+ code
1783
+ }: {
1784
+ code: string;
1785
+ redirectURI: string;
1786
+ codeVerifier?: string | undefined;
1787
+ deviceId?: string | undefined;
1788
+ }) => Promise<{
1789
+ tokenType: "Bearer";
1790
+ accessToken: string;
1791
+ refreshToken: string;
1792
+ accessTokenExpiresAt: Date;
1793
+ scopes: string[];
1794
+ openid: string;
1795
+ unionid: string | undefined;
1796
+ }>;
1797
+ refreshAccessToken: ((refreshToken: string) => Promise<OAuth2Tokens>) | ((refreshToken: string) => Promise<{
1798
+ tokenType: "Bearer";
1799
+ accessToken: string;
1800
+ refreshToken: string;
1801
+ accessTokenExpiresAt: Date;
1802
+ scopes: string[];
1803
+ }>);
1804
+ getUserInfo(token: OAuth2Tokens & {
1805
+ user?: {
1806
+ name?: {
1807
+ firstName?: string;
1808
+ lastName?: string;
1809
+ };
1810
+ email?: string;
1811
+ } | undefined;
1812
+ }): Promise<{
1813
+ user: {
1814
+ id: string;
1815
+ name?: string;
1816
+ email?: string | null;
1817
+ image?: string;
1818
+ emailVerified: boolean;
1819
+ [key: string]: any;
1820
+ };
1821
+ data: any;
1822
+ } | null>;
1823
+ options: WeChatOptions;
1824
+ };
1825
+ };
1826
+ declare const socialProviderList: ["github", ...(keyof typeof socialProviders)[]];
1827
+ declare const SocialProviderListEnum: z.ZodType<SocialProviderList[number] | (string & {})>;
1828
+ type SocialProvider = z.infer<typeof SocialProviderListEnum>;
1829
+ type SocialProviders = { [K in SocialProviderList[number]]?: AwaitableFunction<Parameters<(typeof socialProviders)[K]>[0] & {
1830
+ enabled?: boolean | undefined;
1831
+ }> };
1832
+ type SocialProviderList = typeof socialProviderList;
1833
+ //#endregion
1834
+ export { AccountStatus, AppleNonConformUser, AppleOptions, AppleProfile, AtlassianOptions, AtlassianProfile, CognitoOptions, CognitoProfile, DiscordOptions, DiscordProfile, DropboxOptions, DropboxProfile, FacebookOptions, FacebookProfile, FigmaOptions, FigmaProfile, GithubOptions, GithubProfile, GitlabOptions, GitlabProfile, GoogleOptions, GoogleProfile, HuggingFaceOptions, HuggingFaceProfile, KakaoOptions, KakaoProfile, KickOptions, KickProfile, LineIdTokenPayload, LineOptions, LineUserInfo, LinearOptions, LinearProfile, LinearUser, LinkedInOptions, LinkedInProfile, LoginType, MicrosoftEntraIDProfile, MicrosoftOptions, NaverOptions, NaverProfile, NotionOptions, NotionProfile, PayPalOptions, PayPalProfile, PayPalTokenResponse, PaybinOptions, PaybinProfile, PhoneNumber, PolarOptions, PolarProfile, PronounOption, RailwayOptions, RailwayProfile, RedditOptions, RedditProfile, RobloxOptions, RobloxProfile, SalesforceOptions, SalesforceProfile, SlackOptions, SlackProfile, SocialProvider, SocialProviderList, SocialProviderListEnum, SocialProviders, SpotifyOptions, SpotifyProfile, TiktokOptions, TiktokProfile, TwitchOptions, TwitchProfile, TwitterOption, TwitterProfile, VercelOptions, VercelProfile, VkOption, VkProfile, WeChatOptions, WeChatProfile, ZoomOptions, ZoomProfile, apple, atlassian, cognito, discord, dropbox, facebook, figma, getApplePublicKey, getCognitoPublicKey, getGooglePublicKey, getMicrosoftPublicKey, github, gitlab, google, huggingface, kakao, kick, line, linear, linkedin, microsoft, naver, notion, paybin, paypal, polar, railway, reddit, roblox, salesforce, slack, socialProviderList, socialProviders, spotify, tiktok, twitch, twitter, vercel, vk, wechat, zoom };