payload-auth 1.0.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (423) hide show
  1. package/dist/better-auth/adapter/index.d.ts +2 -2
  2. package/dist/better-auth/adapter/index.d.ts.map +1 -1
  3. package/dist/better-auth/adapter/index.js +115 -69
  4. package/dist/better-auth/adapter/transform/index.d.ts +22 -10
  5. package/dist/better-auth/adapter/transform/index.d.ts.map +1 -1
  6. package/dist/better-auth/adapter/transform/index.js +387 -96
  7. package/dist/better-auth/adapter/types.d.ts +2 -1
  8. package/dist/better-auth/adapter/types.d.ts.map +1 -1
  9. package/dist/better-auth/adapter/types.js +1 -1
  10. package/dist/better-auth/plugin/helpers/check-passkey-plugin.d.ts +3 -0
  11. package/dist/better-auth/plugin/helpers/check-passkey-plugin.d.ts.map +1 -0
  12. package/dist/better-auth/plugin/helpers/check-passkey-plugin.js +5 -0
  13. package/dist/better-auth/plugin/helpers/check-username-plugin.d.ts +3 -0
  14. package/dist/better-auth/plugin/helpers/check-username-plugin.d.ts.map +1 -0
  15. package/dist/better-auth/plugin/helpers/check-username-plugin.js +5 -0
  16. package/dist/better-auth/plugin/helpers/generate-verify-email-url.d.ts.map +1 -1
  17. package/dist/better-auth/plugin/helpers/generate-verify-email-url.js +8 -8
  18. package/dist/better-auth/plugin/helpers/get-admin-access.d.ts +8 -0
  19. package/dist/better-auth/plugin/helpers/get-admin-access.d.ts.map +1 -0
  20. package/dist/better-auth/plugin/helpers/get-admin-access.js +22 -0
  21. package/dist/better-auth/plugin/helpers/get-admin-routes.d.ts +14 -0
  22. package/dist/better-auth/plugin/helpers/get-admin-routes.d.ts.map +1 -0
  23. package/dist/better-auth/plugin/helpers/get-admin-routes.js +6 -0
  24. package/dist/better-auth/plugin/helpers/get-all-roles.d.ts +6 -0
  25. package/dist/better-auth/plugin/helpers/get-all-roles.d.ts.map +1 -0
  26. package/dist/better-auth/plugin/helpers/get-all-roles.js +20 -0
  27. package/dist/better-auth/plugin/helpers/get-ip.d.ts +1 -1
  28. package/dist/better-auth/plugin/helpers/get-ip.d.ts.map +1 -1
  29. package/dist/better-auth/plugin/helpers/get-ip.js +14 -14
  30. package/dist/better-auth/plugin/helpers/get-requst-collection.d.ts +3 -0
  31. package/dist/better-auth/plugin/helpers/get-requst-collection.d.ts.map +1 -0
  32. package/dist/better-auth/plugin/helpers/get-requst-collection.js +14 -0
  33. package/dist/better-auth/plugin/helpers/index.d.ts +1 -1
  34. package/dist/better-auth/plugin/helpers/index.js +2 -2
  35. package/dist/better-auth/plugin/{lib → helpers}/prepare-session-data.d.ts +3 -3
  36. package/dist/better-auth/plugin/helpers/prepare-session-data.d.ts.map +1 -0
  37. package/dist/better-auth/plugin/helpers/prepare-session-data.js +42 -0
  38. package/dist/better-auth/plugin/helpers/serialize-cookie.d.ts +4 -4
  39. package/dist/better-auth/plugin/helpers/serialize-cookie.d.ts.map +1 -1
  40. package/dist/better-auth/plugin/helpers/serialize-cookie.js +34 -34
  41. package/dist/better-auth/plugin/index.d.ts +7 -7
  42. package/dist/better-auth/plugin/index.d.ts.map +1 -1
  43. package/dist/better-auth/plugin/index.js +145 -37
  44. package/dist/better-auth/plugin/{collections → lib/build-collections}/accounts/hooks/sync-password-to-user.d.ts +1 -1
  45. package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.d.ts.map +1 -0
  46. package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.js +47 -0
  47. package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts +7 -0
  48. package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts.map +1 -0
  49. package/dist/better-auth/plugin/lib/build-collections/accounts/index.js +159 -0
  50. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts +6 -0
  51. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts.map +1 -0
  52. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.js +11 -0
  53. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts +3 -0
  54. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts.map +1 -0
  55. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.js +8 -0
  56. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts +7 -0
  57. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts.map +1 -0
  58. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.js +107 -0
  59. package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts +6 -0
  60. package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts.map +1 -0
  61. package/dist/better-auth/plugin/lib/build-collections/api-keys.js +196 -0
  62. package/dist/better-auth/plugin/lib/build-collections/index.d.ts +12 -0
  63. package/dist/better-auth/plugin/lib/build-collections/index.d.ts.map +1 -0
  64. package/dist/better-auth/plugin/lib/build-collections/index.js +96 -0
  65. package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts +6 -0
  66. package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts.map +1 -0
  67. package/dist/better-auth/plugin/lib/build-collections/invitations.js +91 -0
  68. package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts +6 -0
  69. package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts.map +1 -0
  70. package/dist/better-auth/plugin/lib/build-collections/jwks.js +43 -0
  71. package/dist/better-auth/plugin/lib/build-collections/members.d.ts +6 -0
  72. package/dist/better-auth/plugin/lib/build-collections/members.d.ts.map +1 -0
  73. package/dist/better-auth/plugin/lib/build-collections/members.js +71 -0
  74. package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts +6 -0
  75. package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts.map +1 -0
  76. package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.js +98 -0
  77. package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts +6 -0
  78. package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts.map +1 -0
  79. package/dist/better-auth/plugin/lib/build-collections/oauth-applications.js +113 -0
  80. package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts +6 -0
  81. package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts.map +1 -0
  82. package/dist/better-auth/plugin/lib/build-collections/oauth-consents.js +67 -0
  83. package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts +6 -0
  84. package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts.map +1 -0
  85. package/dist/better-auth/plugin/lib/build-collections/organizations.js +59 -0
  86. package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts +6 -0
  87. package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts.map +1 -0
  88. package/dist/better-auth/plugin/lib/build-collections/passkeys.js +108 -0
  89. package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts +8 -0
  90. package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts.map +1 -0
  91. package/dist/better-auth/plugin/lib/build-collections/sessions.js +123 -0
  92. package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts +6 -0
  93. package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts.map +1 -0
  94. package/dist/better-auth/plugin/lib/build-collections/sso-providers.js +83 -0
  95. package/dist/better-auth/plugin/lib/build-collections/teams.d.ts +6 -0
  96. package/dist/better-auth/plugin/lib/build-collections/teams.d.ts.map +1 -0
  97. package/dist/better-auth/plugin/lib/build-collections/teams.js +45 -0
  98. package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts +6 -0
  99. package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts.map +1 -0
  100. package/dist/better-auth/plugin/lib/build-collections/two-factors.js +56 -0
  101. package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts +8 -0
  102. package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts.map +1 -0
  103. package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.js +52 -0
  104. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.d.ts +3 -0
  105. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.d.ts.map +1 -0
  106. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.js +96 -0
  107. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts +13 -0
  108. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts.map +1 -0
  109. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.js +67 -0
  110. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.d.ts +4 -0
  111. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.d.ts.map +1 -0
  112. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.js +115 -0
  113. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts +3 -0
  114. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts.map +1 -0
  115. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.js +110 -0
  116. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.d.ts +3 -0
  117. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.d.ts.map +1 -0
  118. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.js +62 -0
  119. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts +3 -0
  120. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts.map +1 -0
  121. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.js +42 -0
  122. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts +4 -0
  123. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts.map +1 -0
  124. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.js +79 -0
  125. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.d.ts +4 -0
  126. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.d.ts.map +1 -0
  127. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.js +153 -0
  128. package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/after-login.d.ts +1 -1
  129. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.d.ts.map +1 -0
  130. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.js +75 -0
  131. package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/after-logout.d.ts +1 -1
  132. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.d.ts.map +1 -0
  133. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.js +74 -0
  134. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts +7 -0
  135. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts.map +1 -0
  136. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.js +45 -0
  137. package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/before-login.d.ts +1 -1
  138. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.d.ts.map +1 -0
  139. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.js +18 -0
  140. package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts +3 -0
  141. package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts.map +1 -0
  142. package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.js +14 -0
  143. package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/sync-account.d.ts +1 -1
  144. package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.d.ts.map +1 -0
  145. package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.js +82 -0
  146. package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts +8 -0
  147. package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts.map +1 -0
  148. package/dist/better-auth/plugin/lib/build-collections/users/index.js +345 -0
  149. package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts +8 -0
  150. package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts.map +1 -0
  151. package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.js +31 -0
  152. package/dist/better-auth/plugin/lib/{payload-access.d.ts → build-collections/utils/payload-access.d.ts} +1 -1
  153. package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.d.ts.map +1 -0
  154. package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.js +64 -0
  155. package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts +7 -0
  156. package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts.map +1 -0
  157. package/dist/better-auth/plugin/lib/build-collections/verifications.js +63 -0
  158. package/dist/better-auth/plugin/lib/{config.d.ts → constants.d.ts} +13 -1
  159. package/dist/better-auth/plugin/lib/constants.d.ts.map +1 -0
  160. package/dist/better-auth/plugin/lib/constants.js +56 -0
  161. package/dist/better-auth/plugin/lib/get-payload-auth.d.ts +2 -2
  162. package/dist/better-auth/plugin/lib/get-payload-auth.d.ts.map +1 -1
  163. package/dist/better-auth/plugin/lib/get-payload-auth.js +2 -2
  164. package/dist/better-auth/plugin/lib/get-required-collection-slugs.d.ts +4 -4
  165. package/dist/better-auth/plugin/lib/get-required-collection-slugs.d.ts.map +1 -1
  166. package/dist/better-auth/plugin/lib/get-required-collection-slugs.js +26 -43
  167. package/dist/better-auth/plugin/lib/init-better-auth.d.ts +4 -3
  168. package/dist/better-auth/plugin/lib/init-better-auth.d.ts.map +1 -1
  169. package/dist/better-auth/plugin/lib/init-better-auth.js +7 -7
  170. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts +3 -0
  171. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts.map +1 -0
  172. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.js +8 -0
  173. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.d.ts +2 -0
  174. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.d.ts.map +1 -0
  175. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.js +17 -0
  176. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts +10 -0
  177. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts.map +1 -0
  178. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.js +118 -0
  179. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.d.ts +2 -0
  180. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.d.ts.map +1 -0
  181. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.js +58 -0
  182. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.d.ts +2 -0
  183. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.d.ts.map +1 -0
  184. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.js +86 -0
  185. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.d.ts +2 -0
  186. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.d.ts.map +1 -0
  187. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.js +17 -0
  188. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.d.ts +2 -0
  189. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.d.ts.map +1 -0
  190. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.js +17 -0
  191. package/dist/better-auth/plugin/lib/{ensure-password-set-before-create.d.ts → sanitize-better-auth-options/utils/ensure-password-set-before-create.d.ts} +1 -1
  192. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.d.ts.map +1 -0
  193. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.js +23 -0
  194. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.d.ts.map +1 -0
  195. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.js +62 -0
  196. package/dist/better-auth/plugin/lib/{respect-save-to-jwt-fields-middleware.d.ts → sanitize-better-auth-options/utils/save-to-jwt-middleware.d.ts} +6 -6
  197. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/save-to-jwt-middleware.d.ts.map +1 -0
  198. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/save-to-jwt-middleware.js +30 -0
  199. package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts +8 -0
  200. package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts.map +1 -0
  201. package/dist/better-auth/plugin/payload/components/admin-buttons/index.js +115 -0
  202. package/dist/better-auth/plugin/payload/components/admin-buttons/index.scss +31 -0
  203. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts +11 -0
  204. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts.map +1 -0
  205. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.js +196 -0
  206. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.scss +131 -0
  207. package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.d.ts +14 -0
  208. package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.d.ts.map +1 -0
  209. package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.js +111 -0
  210. package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.scss +51 -0
  211. package/dist/better-auth/plugin/payload/components/form-header/index.d.ts +9 -0
  212. package/dist/better-auth/plugin/payload/components/form-header/index.d.ts.map +1 -0
  213. package/dist/better-auth/plugin/payload/components/form-header/index.js +23 -0
  214. package/dist/better-auth/plugin/payload/components/form-header/index.scss +8 -0
  215. package/dist/better-auth/plugin/payload/components/icons.d.ts +9 -0
  216. package/dist/better-auth/plugin/payload/components/icons.d.ts.map +1 -0
  217. package/dist/better-auth/plugin/payload/components/icons.js +437 -0
  218. package/dist/better-auth/plugin/payload/components/logo.d.ts +3 -2
  219. package/dist/better-auth/plugin/payload/components/logo.d.ts.map +1 -1
  220. package/dist/better-auth/plugin/payload/components/logo.js +22 -34
  221. package/dist/better-auth/plugin/payload/components/logout-button.d.ts +6 -0
  222. package/dist/better-auth/plugin/payload/components/logout-button.d.ts.map +1 -0
  223. package/dist/better-auth/plugin/payload/components/logout-button.js +27 -0
  224. package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts +7 -0
  225. package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts.map +1 -0
  226. package/dist/better-auth/plugin/payload/components/rsc-redirect.js +8 -0
  227. package/dist/better-auth/plugin/payload/components/styles.css +2 -2
  228. package/dist/better-auth/plugin/payload/components/token-field.d.ts +5 -0
  229. package/dist/better-auth/plugin/payload/components/token-field.d.ts.map +1 -0
  230. package/dist/better-auth/plugin/payload/components/token-field.js +30 -0
  231. package/dist/better-auth/plugin/payload/exports/client.d.ts +6 -3
  232. package/dist/better-auth/plugin/payload/exports/client.d.ts.map +1 -1
  233. package/dist/better-auth/plugin/payload/exports/client.js +7 -4
  234. package/dist/better-auth/plugin/payload/exports/rsc.d.ts +9 -5
  235. package/dist/better-auth/plugin/payload/exports/rsc.d.ts.map +1 -1
  236. package/dist/better-auth/plugin/payload/exports/rsc.js +10 -6
  237. package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts +3 -0
  238. package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts.map +1 -0
  239. package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.js +8 -0
  240. package/dist/better-auth/plugin/payload/utils/generate-metadata.d.ts +15 -0
  241. package/dist/better-auth/plugin/payload/utils/generate-metadata.d.ts.map +1 -0
  242. package/dist/better-auth/plugin/payload/utils/generate-metadata.js +74 -0
  243. package/dist/better-auth/plugin/payload/utils/get-safe-redirect.d.ts +2 -0
  244. package/dist/better-auth/plugin/payload/utils/get-safe-redirect.d.ts.map +1 -0
  245. package/dist/better-auth/plugin/payload/utils/get-safe-redirect.js +23 -0
  246. package/dist/better-auth/plugin/payload/views/admin-invite/client.d.ts +12 -0
  247. package/dist/better-auth/plugin/payload/views/admin-invite/client.d.ts.map +1 -0
  248. package/dist/better-auth/plugin/payload/views/admin-invite/client.js +92 -0
  249. package/dist/better-auth/plugin/payload/views/admin-invite/index.d.ts +11 -0
  250. package/dist/better-auth/plugin/payload/views/admin-invite/index.d.ts.map +1 -0
  251. package/dist/better-auth/plugin/payload/views/admin-invite/index.js +84 -0
  252. package/dist/better-auth/plugin/payload/views/admin-invite/index.scss +25 -0
  253. package/dist/better-auth/plugin/payload/views/create-first-admin/client.d.ts +14 -0
  254. package/dist/better-auth/plugin/payload/views/create-first-admin/client.d.ts.map +1 -0
  255. package/dist/better-auth/plugin/payload/views/create-first-admin/client.js +95 -0
  256. package/dist/better-auth/plugin/payload/views/create-first-admin/index.d.ts +10 -4
  257. package/dist/better-auth/plugin/payload/views/create-first-admin/index.d.ts.map +1 -1
  258. package/dist/better-auth/plugin/payload/views/create-first-admin/index.js +124 -92
  259. package/dist/better-auth/plugin/payload/views/create-first-admin/index.scss +29 -0
  260. package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts +8 -0
  261. package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts.map +1 -0
  262. package/dist/better-auth/plugin/payload/views/forgot-password/client.js +119 -0
  263. package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts +9 -0
  264. package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts.map +1 -0
  265. package/dist/better-auth/plugin/payload/views/forgot-password/index.js +69 -0
  266. package/dist/better-auth/plugin/payload/views/forgot-password/index.scss +0 -0
  267. package/dist/better-auth/plugin/payload/views/inactivity/index.d.ts +5 -0
  268. package/dist/better-auth/plugin/payload/views/inactivity/index.d.ts.map +1 -0
  269. package/dist/better-auth/plugin/payload/views/inactivity/index.js +12 -0
  270. package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.d.ts +9 -0
  271. package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.d.ts.map +1 -0
  272. package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.js +54 -0
  273. package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.d.ts +1 -0
  274. package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.d.ts.map +1 -0
  275. package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.js +121 -0
  276. package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.scss +31 -0
  277. package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.d.ts +56 -0
  278. package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.d.ts.map +1 -0
  279. package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.js +3 -0
  280. package/dist/better-auth/plugin/payload/views/login/form/index.d.ts +17 -0
  281. package/dist/better-auth/plugin/payload/views/login/form/index.d.ts.map +1 -0
  282. package/dist/better-auth/plugin/payload/views/login/form/index.js +137 -0
  283. package/dist/better-auth/plugin/payload/views/login/form/index.scss +23 -0
  284. package/dist/better-auth/plugin/payload/views/login/index.d.ts +10 -5
  285. package/dist/better-auth/plugin/payload/views/login/index.d.ts.map +1 -1
  286. package/dist/better-auth/plugin/payload/views/login/index.js +81 -61
  287. package/dist/better-auth/plugin/payload/views/login/index.scss +10 -0
  288. package/dist/better-auth/plugin/payload/views/logout/client.d.ts +8 -0
  289. package/dist/better-auth/plugin/payload/views/logout/client.d.ts.map +1 -0
  290. package/dist/better-auth/plugin/payload/views/logout/client.js +76 -0
  291. package/dist/better-auth/plugin/payload/views/logout/index.d.ts +8 -0
  292. package/dist/better-auth/plugin/payload/views/logout/index.d.ts.map +1 -0
  293. package/dist/better-auth/plugin/payload/views/logout/index.js +14 -0
  294. package/dist/better-auth/plugin/payload/views/logout/index.scss +0 -0
  295. package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts +7 -0
  296. package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts.map +1 -0
  297. package/dist/better-auth/plugin/payload/views/reset-password/client.js +72 -0
  298. package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts +5 -0
  299. package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts.map +1 -0
  300. package/dist/better-auth/plugin/payload/views/reset-password/index.js +81 -0
  301. package/dist/better-auth/plugin/payload/views/reset-password/index.scss +9 -0
  302. package/dist/better-auth/plugin/payload/views/reset-password/metadata.d.ts +3 -0
  303. package/dist/better-auth/plugin/payload/views/reset-password/metadata.d.ts.map +1 -0
  304. package/dist/better-auth/plugin/payload/views/reset-password/metadata.js +11 -0
  305. package/dist/better-auth/plugin/types.d.ts +170 -33
  306. package/dist/better-auth/plugin/types.d.ts.map +1 -1
  307. package/dist/better-auth/plugin/types.js +1 -1
  308. package/dist/clerk/plugin/components/sync-clerk-users-button.d.ts +1 -1
  309. package/dist/clerk/plugin/components/sync-clerk-users-button.d.ts.map +1 -1
  310. package/dist/clerk/utils/clerk-user.d.ts +0 -3
  311. package/dist/clerk/utils/clerk-user.d.ts.map +1 -1
  312. package/dist/clerk/utils/clerk-user.js +1 -3
  313. package/dist/clerk/utils/load-clerk-instance.d.ts +1 -1
  314. package/dist/clerk/utils/load-clerk-instance.d.ts.map +1 -1
  315. package/package.json +14 -14
  316. package/LICENSE.md +0 -17
  317. package/dist/better-auth/adapter/dev/bin/run.d.ts +0 -2
  318. package/dist/better-auth/adapter/dev/bin/run.d.ts.map +0 -1
  319. package/dist/better-auth/adapter/dev/bin/run.js +0 -64
  320. package/dist/better-auth/adapter/dev/bin/schema.d.ts +0 -23
  321. package/dist/better-auth/adapter/dev/bin/schema.d.ts.map +0 -1
  322. package/dist/better-auth/adapter/dev/bin/schema.js +0 -160
  323. package/dist/better-auth/adapter/dev/collections.d.ts +0 -4
  324. package/dist/better-auth/adapter/dev/collections.d.ts.map +0 -1
  325. package/dist/better-auth/adapter/dev/collections.js +0 -212
  326. package/dist/better-auth/adapter/dev/index.d.ts +0 -4
  327. package/dist/better-auth/adapter/dev/index.d.ts.map +0 -1
  328. package/dist/better-auth/adapter/dev/index.js +0 -168
  329. package/dist/better-auth/adapter/test/adapter.test.d.ts +0 -2
  330. package/dist/better-auth/adapter/test/adapter.test.d.ts.map +0 -1
  331. package/dist/better-auth/adapter/test/adapter.test.js +0 -181
  332. package/dist/better-auth/adapter/test/better-auth-adapter-test.d.ts +0 -8
  333. package/dist/better-auth/adapter/test/better-auth-adapter-test.d.ts.map +0 -1
  334. package/dist/better-auth/adapter/test/better-auth-adapter-test.js +0 -425
  335. package/dist/better-auth/adapter/test/schema.test.d.ts +0 -2
  336. package/dist/better-auth/adapter/test/schema.test.d.ts.map +0 -1
  337. package/dist/better-auth/adapter/test/schema.test.js +0 -796
  338. package/dist/better-auth/adapter/test/test_payload1/schema.d.ts +0 -24
  339. package/dist/better-auth/adapter/test/test_payload1/schema.d.ts.map +0 -1
  340. package/dist/better-auth/adapter/test/test_payload1/schema.js +0 -177
  341. package/dist/better-auth/adapter/test/test_payload2/schema.d.ts +0 -24
  342. package/dist/better-auth/adapter/test/test_payload2/schema.d.ts.map +0 -1
  343. package/dist/better-auth/adapter/test/test_payload2/schema.js +0 -167
  344. package/dist/better-auth/adapter/test/test_payload3/schema.d.ts +0 -24
  345. package/dist/better-auth/adapter/test/test_payload3/schema.d.ts.map +0 -1
  346. package/dist/better-auth/adapter/test/test_payload3/schema.js +0 -198
  347. package/dist/better-auth/plugin/collections/accounts/hooks/sync-password-to-user.d.ts.map +0 -1
  348. package/dist/better-auth/plugin/collections/accounts/hooks/sync-password-to-user.js +0 -47
  349. package/dist/better-auth/plugin/collections/users/endpoints/refresh-token.d.ts +0 -7
  350. package/dist/better-auth/plugin/collections/users/endpoints/refresh-token.d.ts.map +0 -1
  351. package/dist/better-auth/plugin/collections/users/endpoints/refresh-token.js +0 -106
  352. package/dist/better-auth/plugin/collections/users/hooks/after-login.d.ts.map +0 -1
  353. package/dist/better-auth/plugin/collections/users/hooks/after-login.js +0 -71
  354. package/dist/better-auth/plugin/collections/users/hooks/after-logout.d.ts.map +0 -1
  355. package/dist/better-auth/plugin/collections/users/hooks/after-logout.js +0 -49
  356. package/dist/better-auth/plugin/collections/users/hooks/before-login.d.ts.map +0 -1
  357. package/dist/better-auth/plugin/collections/users/hooks/before-login.js +0 -18
  358. package/dist/better-auth/plugin/collections/users/hooks/clean-up-user-after-delete.d.ts +0 -6
  359. package/dist/better-auth/plugin/collections/users/hooks/clean-up-user-after-delete.d.ts.map +0 -1
  360. package/dist/better-auth/plugin/collections/users/hooks/clean-up-user-after-delete.js +0 -33
  361. package/dist/better-auth/plugin/collections/users/hooks/on-verified-change.d.ts +0 -3
  362. package/dist/better-auth/plugin/collections/users/hooks/on-verified-change.d.ts.map +0 -1
  363. package/dist/better-auth/plugin/collections/users/hooks/on-verified-change.js +0 -14
  364. package/dist/better-auth/plugin/collections/users/hooks/sync-account.d.ts.map +0 -1
  365. package/dist/better-auth/plugin/collections/users/hooks/sync-account.js +0 -82
  366. package/dist/better-auth/plugin/lib/auth-strategy.d.ts +0 -9
  367. package/dist/better-auth/plugin/lib/auth-strategy.d.ts.map +0 -1
  368. package/dist/better-auth/plugin/lib/auth-strategy.js +0 -48
  369. package/dist/better-auth/plugin/lib/build-collection-configs.d.ts +0 -12
  370. package/dist/better-auth/plugin/lib/build-collection-configs.d.ts.map +0 -1
  371. package/dist/better-auth/plugin/lib/build-collection-configs.js +0 -1558
  372. package/dist/better-auth/plugin/lib/config.d.ts.map +0 -1
  373. package/dist/better-auth/plugin/lib/config.js +0 -44
  374. package/dist/better-auth/plugin/lib/ensure-password-set-before-create.d.ts.map +0 -1
  375. package/dist/better-auth/plugin/lib/ensure-password-set-before-create.js +0 -24
  376. package/dist/better-auth/plugin/lib/password.d.ts.map +0 -1
  377. package/dist/better-auth/plugin/lib/password.js +0 -63
  378. package/dist/better-auth/plugin/lib/payload-access.d.ts.map +0 -1
  379. package/dist/better-auth/plugin/lib/payload-access.js +0 -64
  380. package/dist/better-auth/plugin/lib/prepare-session-data.d.ts.map +0 -1
  381. package/dist/better-auth/plugin/lib/prepare-session-data.js +0 -42
  382. package/dist/better-auth/plugin/lib/respect-save-to-jwt-fields-middleware.d.ts.map +0 -1
  383. package/dist/better-auth/plugin/lib/respect-save-to-jwt-fields-middleware.js +0 -30
  384. package/dist/better-auth/plugin/lib/sanitize-auth-options.d.ts +0 -6
  385. package/dist/better-auth/plugin/lib/sanitize-auth-options.d.ts.map +0 -1
  386. package/dist/better-auth/plugin/lib/sanitize-auth-options.js +0 -298
  387. package/dist/better-auth/plugin/payload/components/admin-buttons.d.ts +0 -7
  388. package/dist/better-auth/plugin/payload/components/admin-buttons.d.ts.map +0 -1
  389. package/dist/better-auth/plugin/payload/components/admin-buttons.js +0 -219
  390. package/dist/better-auth/plugin/payload/components/login-redirect.d.ts +0 -2
  391. package/dist/better-auth/plugin/payload/components/login-redirect.d.ts.map +0 -1
  392. package/dist/better-auth/plugin/payload/components/login-redirect.js +0 -6
  393. package/dist/better-auth/plugin/payload/components/logout.d.ts +0 -3
  394. package/dist/better-auth/plugin/payload/components/logout.d.ts.map +0 -1
  395. package/dist/better-auth/plugin/payload/components/logout.js +0 -61
  396. package/dist/better-auth/plugin/payload/components/sign-in.d.ts +0 -4
  397. package/dist/better-auth/plugin/payload/components/sign-in.d.ts.map +0 -1
  398. package/dist/better-auth/plugin/payload/components/sign-in.js +0 -384
  399. package/dist/better-auth/plugin/payload/components/sign-up.d.ts +0 -7
  400. package/dist/better-auth/plugin/payload/components/sign-up.d.ts.map +0 -1
  401. package/dist/better-auth/plugin/payload/components/sign-up.js +0 -503
  402. package/dist/better-auth/plugin/payload/components/ui/button.d.ts +0 -11
  403. package/dist/better-auth/plugin/payload/components/ui/button.d.ts.map +0 -1
  404. package/dist/better-auth/plugin/payload/components/ui/button.js +0 -42
  405. package/dist/better-auth/plugin/payload/components/ui/card.d.ts +0 -10
  406. package/dist/better-auth/plugin/payload/components/ui/card.d.ts.map +0 -1
  407. package/dist/better-auth/plugin/payload/components/ui/card.js +0 -55
  408. package/dist/better-auth/plugin/payload/components/ui/checkbox.d.ts +0 -5
  409. package/dist/better-auth/plugin/payload/components/ui/checkbox.d.ts.map +0 -1
  410. package/dist/better-auth/plugin/payload/components/ui/checkbox.js +0 -23
  411. package/dist/better-auth/plugin/payload/components/ui/cn.d.ts +0 -3
  412. package/dist/better-auth/plugin/payload/components/ui/cn.d.ts.map +0 -1
  413. package/dist/better-auth/plugin/payload/components/ui/cn.js +0 -7
  414. package/dist/better-auth/plugin/payload/components/ui/input.d.ts +0 -4
  415. package/dist/better-auth/plugin/payload/components/ui/input.d.ts.map +0 -1
  416. package/dist/better-auth/plugin/payload/components/ui/input.js +0 -14
  417. package/dist/better-auth/plugin/payload/components/ui/label.d.ts +0 -5
  418. package/dist/better-auth/plugin/payload/components/ui/label.d.ts.map +0 -1
  419. package/dist/better-auth/plugin/payload/components/ui/label.js +0 -15
  420. package/dist/better-auth/plugin/payload/components/ui/password-input.d.ts +0 -3
  421. package/dist/better-auth/plugin/payload/components/ui/password-input.d.ts.map +0 -1
  422. package/dist/better-auth/plugin/payload/components/ui/password-input.js +0 -55
  423. /package/dist/better-auth/plugin/lib/{password.d.ts → sanitize-better-auth-options/utils/password.d.ts} +0 -0
@@ -1,24 +0,0 @@
1
- /**
2
- * EXAMPLE COLLECTIONS FOR BETTER AUTH
3
- *
4
- * Below is what your Payload collections should look like.
5
- * Please copy these to your actual collection configs.
6
- * Make sure to add an authStrategy for the users collection if there is one.
7
- *
8
- * Example auth strategy:
9
- * auth: {
10
- * disableLocalStrategy: true,
11
- * strategies: [
12
- * betterAuthStrategy(),
13
- * // Add other strategies as needed
14
- * ],
15
- * },
16
- */
17
- import type { CollectionConfig } from 'payload';
18
- declare const User: CollectionConfig;
19
- declare const Session: CollectionConfig;
20
- declare const Account: CollectionConfig;
21
- declare const Verification: CollectionConfig;
22
- declare const TestTable: CollectionConfig;
23
- export { User, Session, Account, Verification, TestTable };
24
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/test/test_payload1/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,gBA6BF,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAiCL,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAoDL,CAAA;AAEV,QAAA,MAAM,YAAY,EAAE,gBAuBV,CAAA;AAEV,QAAA,MAAM,SAAS,EAAE,gBAiBP,CAAA;AAEV,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAA"}
@@ -1,177 +0,0 @@
1
- /**
2
- * EXAMPLE COLLECTIONS FOR BETTER AUTH
3
- *
4
- * Below is what your Payload collections should look like.
5
- * Please copy these to your actual collection configs.
6
- * Make sure to add an authStrategy for the users collection if there is one.
7
- *
8
- * Example auth strategy:
9
- * auth: {
10
- * disableLocalStrategy: true,
11
- * strategies: [
12
- * betterAuthStrategy(),
13
- * // Add other strategies as needed
14
- * ],
15
- * },
16
- */ const User = {
17
- slug: 'user',
18
- admin: {
19
- useAsTitle: 'name'
20
- },
21
- fields: [
22
- {
23
- name: 'name',
24
- type: 'text',
25
- required: true
26
- },
27
- {
28
- name: 'email',
29
- type: 'email',
30
- required: true,
31
- unique: true
32
- },
33
- {
34
- name: 'emailVerified',
35
- type: 'checkbox',
36
- required: true
37
- },
38
- {
39
- name: 'image',
40
- type: 'upload',
41
- relationTo: 'media'
42
- }
43
- ],
44
- timestamps: true
45
- };
46
- const Session = {
47
- slug: 'session',
48
- admin: {
49
- useAsTitle: 'expiresAt'
50
- },
51
- fields: [
52
- {
53
- name: 'expiresAt',
54
- type: 'date',
55
- required: true
56
- },
57
- {
58
- name: 'token',
59
- type: 'text',
60
- required: true,
61
- unique: true
62
- },
63
- {
64
- name: 'ipAddress',
65
- type: 'text'
66
- },
67
- {
68
- name: 'userAgent',
69
- type: 'text'
70
- },
71
- {
72
- name: 'userId',
73
- type: 'relationship',
74
- required: true,
75
- relationTo: 'user'
76
- }
77
- ],
78
- timestamps: true
79
- };
80
- const Account = {
81
- slug: 'account',
82
- admin: {
83
- useAsTitle: 'accountId'
84
- },
85
- fields: [
86
- {
87
- name: 'accountId',
88
- type: 'text',
89
- required: true
90
- },
91
- {
92
- name: 'providerId',
93
- type: 'text',
94
- required: true
95
- },
96
- {
97
- name: 'userId',
98
- type: 'relationship',
99
- required: true,
100
- relationTo: 'user'
101
- },
102
- {
103
- name: 'accessToken',
104
- type: 'text'
105
- },
106
- {
107
- name: 'refreshToken',
108
- type: 'text'
109
- },
110
- {
111
- name: 'idToken',
112
- type: 'text'
113
- },
114
- {
115
- name: 'accessTokenExpiresAt',
116
- type: 'date'
117
- },
118
- {
119
- name: 'refreshTokenExpiresAt',
120
- type: 'date'
121
- },
122
- {
123
- name: 'scope',
124
- type: 'text'
125
- },
126
- {
127
- name: 'password',
128
- type: 'text'
129
- }
130
- ],
131
- timestamps: true
132
- };
133
- const Verification = {
134
- slug: 'verification',
135
- admin: {
136
- useAsTitle: 'identifier'
137
- },
138
- fields: [
139
- {
140
- name: 'identifier',
141
- type: 'text',
142
- required: true
143
- },
144
- {
145
- name: 'value',
146
- type: 'text',
147
- required: true
148
- },
149
- {
150
- name: 'expiresAt',
151
- type: 'date',
152
- required: true
153
- }
154
- ],
155
- timestamps: true
156
- };
157
- const TestTable = {
158
- slug: 'testTable',
159
- admin: {
160
- useAsTitle: 'hello'
161
- },
162
- fields: [
163
- {
164
- name: 'hello',
165
- type: 'checkbox'
166
- },
167
- {
168
- name: 'hello2',
169
- type: 'text',
170
- required: true
171
- }
172
- ],
173
- timestamps: true
174
- };
175
- export { User, Session, Account, Verification, TestTable };
176
-
177
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL3Rlc3QvdGVzdF9wYXlsb2FkMS9zY2hlbWEudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFWEFNUExFIENPTExFQ1RJT05TIEZPUiBCRVRURVIgQVVUSFxuICpcbiAqIEJlbG93IGlzIHdoYXQgeW91ciBQYXlsb2FkIGNvbGxlY3Rpb25zIHNob3VsZCBsb29rIGxpa2UuXG4gKiBQbGVhc2UgY29weSB0aGVzZSB0byB5b3VyIGFjdHVhbCBjb2xsZWN0aW9uIGNvbmZpZ3MuXG4gKiBNYWtlIHN1cmUgdG8gYWRkIGFuIGF1dGhTdHJhdGVneSBmb3IgdGhlIHVzZXJzIGNvbGxlY3Rpb24gaWYgdGhlcmUgaXMgb25lLlxuICpcbiAqIEV4YW1wbGUgYXV0aCBzdHJhdGVneTpcbiAqIGF1dGg6IHtcbiAqICAgZGlzYWJsZUxvY2FsU3RyYXRlZ3k6IHRydWUsXG4gKiAgIHN0cmF0ZWdpZXM6IFtcbiAqICAgICBiZXR0ZXJBdXRoU3RyYXRlZ3koKSxcbiAqICAgICAvLyBBZGQgb3RoZXIgc3RyYXRlZ2llcyBhcyBuZWVkZWRcbiAqICAgXSxcbiAqIH0sXG4gKi9cbmltcG9ydCB0eXBlIHsgQ29sbGVjdGlvbkNvbmZpZyB9IGZyb20gJ3BheWxvYWQnXG5cbmNvbnN0IFVzZXI6IENvbGxlY3Rpb25Db25maWcgPSB7XG4gIHNsdWc6ICd1c2VyJyxcbiAgYWRtaW46IHtcbiAgICB1c2VBc1RpdGxlOiAnbmFtZScsXG4gIH0s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1BQU07WUFDTkMsVUFBVTtRQUNaO1FBQ0E7WUFDRUYsTUFBTTtZQUNOQyxNQUFNO1lBQ05DLFVBQVU7UUFDWjtRQUNBO1lBQ0VGLE1BQU07WUFDTkMsTUFBTTtZQUNOQyxVQUFVO1FBQ1o7S0FDRDtJQUNERyxZQUFZO0FBQ2Q7QUFFQSxNQUFNSSxZQUE4QjtJQUNsQ2IsTUFBTTtJQUNOQyxPQUFPO1FBQ0xDLFlBQVk7SUFDZDtJQUNBQyxRQUFRO1FBQ047WUFDRUMsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07WUFDTkMsVUFBVTtRQUNaO0tBQ0Q7SUFDREcsWUFBWTtBQUNkO0FBRUEsU0FBU1YsSUFBSSxFQUFFVyxPQUFPLEVBQUVDLE9BQU8sRUFBRUMsWUFBWSxFQUFFQyxTQUFTLEdBQUUifQ==
@@ -1,24 +0,0 @@
1
- /**
2
- * EXAMPLE COLLECTIONS FOR BETTER AUTH
3
- *
4
- * Below is what your Payload collections should look like.
5
- * Please copy these to your actual collection configs.
6
- * Make sure to add an authStrategy for the users collection if there is one.
7
- *
8
- * Example auth strategy:
9
- * auth: {
10
- * disableLocalStrategy: true,
11
- * strategies: [
12
- * betterAuthStrategy(),
13
- * // Add other strategies as needed
14
- * ],
15
- * },
16
- */
17
- import type { CollectionConfig } from 'payload';
18
- declare const User: CollectionConfig;
19
- declare const Session: CollectionConfig;
20
- declare const Account: CollectionConfig;
21
- declare const Verification: CollectionConfig;
22
- declare const Admins: CollectionConfig;
23
- export { User, Session, Account, Verification, Admins };
24
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/test/test_payload2/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,gBA6BF,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAiCL,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAoDL,CAAA;AAEV,QAAA,MAAM,YAAY,EAAE,gBAuBV,CAAA;AAEV,QAAA,MAAM,MAAM,EAAE,gBAOJ,CAAA;AAEV,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,CAAA"}
@@ -1,167 +0,0 @@
1
- /**
2
- * EXAMPLE COLLECTIONS FOR BETTER AUTH
3
- *
4
- * Below is what your Payload collections should look like.
5
- * Please copy these to your actual collection configs.
6
- * Make sure to add an authStrategy for the users collection if there is one.
7
- *
8
- * Example auth strategy:
9
- * auth: {
10
- * disableLocalStrategy: true,
11
- * strategies: [
12
- * betterAuthStrategy(),
13
- * // Add other strategies as needed
14
- * ],
15
- * },
16
- */ const User = {
17
- slug: 'user',
18
- admin: {
19
- useAsTitle: 'name'
20
- },
21
- fields: [
22
- {
23
- name: 'name',
24
- type: 'text',
25
- required: true
26
- },
27
- {
28
- name: 'email',
29
- type: 'email',
30
- required: true,
31
- unique: true
32
- },
33
- {
34
- name: 'emailVerified',
35
- type: 'checkbox',
36
- required: true
37
- },
38
- {
39
- name: 'image',
40
- type: 'upload',
41
- relationTo: 'media'
42
- }
43
- ],
44
- timestamps: true
45
- };
46
- const Session = {
47
- slug: 'session',
48
- admin: {
49
- useAsTitle: 'expiresAt'
50
- },
51
- fields: [
52
- {
53
- name: 'expiresAt',
54
- type: 'date',
55
- required: true
56
- },
57
- {
58
- name: 'token',
59
- type: 'text',
60
- required: true,
61
- unique: true
62
- },
63
- {
64
- name: 'ipAddress',
65
- type: 'text'
66
- },
67
- {
68
- name: 'userAgent',
69
- type: 'text'
70
- },
71
- {
72
- name: 'userId',
73
- type: 'relationship',
74
- required: true,
75
- relationTo: 'user'
76
- }
77
- ],
78
- timestamps: true
79
- };
80
- const Account = {
81
- slug: 'account',
82
- admin: {
83
- useAsTitle: 'accountId'
84
- },
85
- fields: [
86
- {
87
- name: 'accountId',
88
- type: 'text',
89
- required: true
90
- },
91
- {
92
- name: 'providerId',
93
- type: 'text',
94
- required: true
95
- },
96
- {
97
- name: 'userId',
98
- type: 'relationship',
99
- required: true,
100
- relationTo: 'user'
101
- },
102
- {
103
- name: 'accessToken',
104
- type: 'text'
105
- },
106
- {
107
- name: 'refreshToken',
108
- type: 'text'
109
- },
110
- {
111
- name: 'idToken',
112
- type: 'text'
113
- },
114
- {
115
- name: 'accessTokenExpiresAt',
116
- type: 'date'
117
- },
118
- {
119
- name: 'refreshTokenExpiresAt',
120
- type: 'date'
121
- },
122
- {
123
- name: 'scope',
124
- type: 'text'
125
- },
126
- {
127
- name: 'password',
128
- type: 'text'
129
- }
130
- ],
131
- timestamps: true
132
- };
133
- const Verification = {
134
- slug: 'verification',
135
- admin: {
136
- useAsTitle: 'identifier'
137
- },
138
- fields: [
139
- {
140
- name: 'identifier',
141
- type: 'text',
142
- required: true
143
- },
144
- {
145
- name: 'value',
146
- type: 'text',
147
- required: true
148
- },
149
- {
150
- name: 'expiresAt',
151
- type: 'date',
152
- required: true
153
- }
154
- ],
155
- timestamps: true
156
- };
157
- const Admins = {
158
- slug: 'admins',
159
- admin: {
160
- useAsTitle: 'id'
161
- },
162
- fields: [],
163
- timestamps: true
164
- };
165
- export { User, Session, Account, Verification, Admins };
166
-
167
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL3Rlc3QvdGVzdF9wYXlsb2FkMi9zY2hlbWEudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFWEFNUExFIENPTExFQ1RJT05TIEZPUiBCRVRURVIgQVVUSFxuICpcbiAqIEJlbG93IGlzIHdoYXQgeW91ciBQYXlsb2FkIGNvbGxlY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WUFDTkMsTUFBTTtRQUNSO1FBQ0E7WUFDRUQsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtRQUNBO1lBQ0VELE1BQU07WUFDTkMsTUFBTTtRQUNSO1FBQ0E7WUFDRUQsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtRQUNBO1lBQ0VELE1BQU07WUFDTkMsTUFBTTtRQUNSO0tBQ0Q7SUFDREksWUFBWTtBQUNkO0FBRUEsTUFBTUcsZUFBaUM7SUFDckNaLE1BQU07SUFDTkMsT0FBTztRQUNMQyxZQUFZO0lBQ2Q7SUFDQUMsUUFBUTtRQUNOO1lBQ0VDLE1BQU07WUFDTkMsTUFBTTtZQUNOQyxVQUFVO1FBQ1o7UUFDQTtZQUNFRixNQUFNO1lBQ05DLE1BQU07WUFDTkMsVUFBVTtRQUNaO1FBQ0E7WUFDRUYsTUFBTTtZQUNOQyxNQUFNO1lBQ05DLFVBQVU7UUFDWjtLQUNEO0lBQ0RHLFlBQVk7QUFDZDtBQUVBLE1BQU1JLFNBQTJCO0lBQy9CYixNQUFNO0lBQ05DLE9BQU87UUFDTEMsWUFBWTtJQUNkO0lBQ0FDLFFBQVEsRUFBRTtJQUNWTSxZQUFZO0FBQ2Q7QUFFQSxTQUFTVixJQUFJLEVBQUVXLE9BQU8sRUFBRUMsT0FBTyxFQUFFQyxZQUFZLEVBQUVDLE1BQU0sR0FBRSJ9
@@ -1,24 +0,0 @@
1
- /**
2
- * EXAMPLE COLLECTIONS FOR BETTER AUTH
3
- *
4
- * Below is what your Payload collections should look like.
5
- * Please copy these to your actual collection configs.
6
- * Make sure to add an authStrategy for the users collection if there is one.
7
- *
8
- * Example auth strategy:
9
- * auth: {
10
- * disableLocalStrategy: true,
11
- * strategies: [
12
- * betterAuthStrategy(),
13
- * // Add other strategies as needed
14
- * ],
15
- * },
16
- */
17
- import type { CollectionConfig } from 'payload';
18
- declare const User: CollectionConfig;
19
- declare const Session: CollectionConfig;
20
- declare const Account: CollectionConfig;
21
- declare const Verification: CollectionConfig;
22
- declare const Admin: CollectionConfig;
23
- export { User, Session, Account, Verification, Admin };
24
- //# sourceMappingURL=schema.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/test/test_payload3/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,gBA6BF,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAiCL,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAoDL,CAAA;AAEV,QAAA,MAAM,YAAY,EAAE,gBAuBV,CAAA;AAEV,QAAA,MAAM,KAAK,EAAE,gBAsCH,CAAA;AAEV,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,CAAA"}
@@ -1,198 +0,0 @@
1
- /**
2
- * EXAMPLE COLLECTIONS FOR BETTER AUTH
3
- *
4
- * Below is what your Payload collections should look like.
5
- * Please copy these to your actual collection configs.
6
- * Make sure to add an authStrategy for the users collection if there is one.
7
- *
8
- * Example auth strategy:
9
- * auth: {
10
- * disableLocalStrategy: true,
11
- * strategies: [
12
- * betterAuthStrategy(),
13
- * // Add other strategies as needed
14
- * ],
15
- * },
16
- */ const User = {
17
- slug: 'user',
18
- admin: {
19
- useAsTitle: 'name'
20
- },
21
- fields: [
22
- {
23
- name: 'name',
24
- type: 'text',
25
- required: true
26
- },
27
- {
28
- name: 'email',
29
- type: 'email',
30
- required: true,
31
- unique: true
32
- },
33
- {
34
- name: 'emailVerified',
35
- type: 'checkbox',
36
- required: true
37
- },
38
- {
39
- name: 'image',
40
- type: 'upload',
41
- relationTo: 'media'
42
- }
43
- ],
44
- timestamps: true
45
- };
46
- const Session = {
47
- slug: 'session',
48
- admin: {
49
- useAsTitle: 'expiresAt'
50
- },
51
- fields: [
52
- {
53
- name: 'expiresAt',
54
- type: 'date',
55
- required: true
56
- },
57
- {
58
- name: 'token',
59
- type: 'text',
60
- required: true,
61
- unique: true
62
- },
63
- {
64
- name: 'ipAddress',
65
- type: 'text'
66
- },
67
- {
68
- name: 'userAgent',
69
- type: 'text'
70
- },
71
- {
72
- name: 'userId',
73
- type: 'relationship',
74
- required: true,
75
- relationTo: 'user'
76
- }
77
- ],
78
- timestamps: true
79
- };
80
- const Account = {
81
- slug: 'account',
82
- admin: {
83
- useAsTitle: 'accountId'
84
- },
85
- fields: [
86
- {
87
- name: 'accountId',
88
- type: 'text',
89
- required: true
90
- },
91
- {
92
- name: 'providerId',
93
- type: 'text',
94
- required: true
95
- },
96
- {
97
- name: 'userId',
98
- type: 'relationship',
99
- required: true,
100
- relationTo: 'user'
101
- },
102
- {
103
- name: 'accessToken',
104
- type: 'text'
105
- },
106
- {
107
- name: 'refreshToken',
108
- type: 'text'
109
- },
110
- {
111
- name: 'idToken',
112
- type: 'text'
113
- },
114
- {
115
- name: 'accessTokenExpiresAt',
116
- type: 'date'
117
- },
118
- {
119
- name: 'refreshTokenExpiresAt',
120
- type: 'date'
121
- },
122
- {
123
- name: 'scope',
124
- type: 'text'
125
- },
126
- {
127
- name: 'password',
128
- type: 'text'
129
- }
130
- ],
131
- timestamps: true
132
- };
133
- const Verification = {
134
- slug: 'verification',
135
- admin: {
136
- useAsTitle: 'identifier'
137
- },
138
- fields: [
139
- {
140
- name: 'identifier',
141
- type: 'text',
142
- required: true
143
- },
144
- {
145
- name: 'value',
146
- type: 'text',
147
- required: true
148
- },
149
- {
150
- name: 'expiresAt',
151
- type: 'date',
152
- required: true
153
- }
154
- ],
155
- timestamps: true
156
- };
157
- const Admin = {
158
- slug: 'admin',
159
- admin: {
160
- useAsTitle: 'name'
161
- },
162
- fields: [
163
- {
164
- name: 'name',
165
- type: 'text',
166
- required: true
167
- },
168
- {
169
- name: 'isAdmin',
170
- type: 'checkbox',
171
- required: true
172
- },
173
- {
174
- name: 'status',
175
- type: 'text'
176
- },
177
- {
178
- name: 'date',
179
- type: 'date'
180
- },
181
- {
182
- name: 'number',
183
- type: 'number'
184
- },
185
- {
186
- name: 'str_array',
187
- type: 'text'
188
- },
189
- {
190
- name: 'num_array',
191
- type: 'text'
192
- }
193
- ],
194
- timestamps: true
195
- };
196
- export { User, Session, Account, Verification, Admin };
197
-
198
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL3Rlc3QvdGVzdF9wYXlsb2FkMy9zY2hlbWEudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFWEFNUExFIENPTExFQ1RJT05TIEZPUiBCRVRURVIgQVVUSFxuICpcbiAqIEJlbG93IGlzIHdoYXQgeW91ciBQYXlsb2FkIGNvbGxlY3Rpb25zIHNob3VsZCBsb29rIGxpa2UuXG4gKiBQbGVhc2UgY29weSB0aGVzZSB0byB5b3VyIGFjdHVhbCBjb2xsZWN0aW9uIGNvbmZpZ3MuXG4gKiBNYWtlIHN1cmUgdG8gYWRkIGFuIGF1dGhTdHJhdGVneSBmb3IgdGhlIHVzZXJzIGNvbGxlY3Rpb24gaWYgdGhlcmUgaXMgb25lLlxuICpcbiAqIEV4YW1wbGUgYXV0aCBzdHJhdGVneTpcbiAqIGF1dGg6IHtcbiAqICAgZGlzYWJsZUxvY2FsU3RyYXRlZ3k6IHRydWUsXG4gKiAgIHN0cmF0ZWdpZXM6IFtcbiAqICAgICBiZXR0ZXJBdXRoU3RyYXRlZ3koKSxcbiAqICAgICAvLyBBZGQgb3RoZXIgc3RyYXRlZ2llcyBhcyBuZWVkZWRcbiAqICAgXSxcbiAqIH0sXG4gKi9cbmltcG9ydC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0E7WUFDRUQsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtLQUNEO0lBQ0RJLFlBQVk7QUFDZDtBQUVBLFNBQVNWLElBQUksRUFBRVcsT0FBTyxFQUFFQyxPQUFPLEVBQUVDLFlBQVksRUFBRUMsS0FBSyxHQUFFIn0=
@@ -1 +0,0 @@
1
- {"version":3,"file":"sync-password-to-user.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/collections/accounts/hooks/sync-password-to-user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAMxD,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,SAAS,yBAAyB,KACjC,yBA0DF,CAAA"}