payload-auth 1.8.0-canary.1 → 1.8.0

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 (409) hide show
  1. package/dist/better-auth/adapter/generate-schema/generate-schema-builder.d.ts +1 -1
  2. package/dist/better-auth/adapter/generate-schema/generate-schema-builder.d.ts.map +1 -1
  3. package/dist/better-auth/adapter/generate-schema/generate-schema-builder.js +51 -54
  4. package/dist/better-auth/adapter/generate-schema/get-payload-schema.d.ts.map +1 -1
  5. package/dist/better-auth/adapter/generate-schema/get-payload-schema.js +4 -4
  6. package/dist/better-auth/adapter/generate-schema/index.d.ts +1 -1
  7. package/dist/better-auth/adapter/generate-schema/index.d.ts.map +1 -1
  8. package/dist/better-auth/adapter/generate-schema/index.js +4 -4
  9. package/dist/better-auth/adapter/generate-schema/utils.js +4 -4
  10. package/dist/better-auth/adapter/index.d.ts +2 -2
  11. package/dist/better-auth/adapter/index.d.ts.map +1 -1
  12. package/dist/better-auth/adapter/index.js +59 -59
  13. package/dist/better-auth/adapter/transform/index.d.ts +3 -3
  14. package/dist/better-auth/adapter/transform/index.d.ts.map +1 -1
  15. package/dist/better-auth/adapter/transform/index.js +86 -61
  16. package/dist/better-auth/adapter/types.d.ts +4 -4
  17. package/dist/better-auth/adapter/types.d.ts.map +1 -1
  18. package/dist/better-auth/adapter/types.js +1 -1
  19. package/dist/better-auth/generated-types.d.ts +27 -1
  20. package/dist/better-auth/generated-types.d.ts.map +1 -1
  21. package/dist/better-auth/generated-types.js +1 -1
  22. package/dist/better-auth/index.d.ts +3 -3
  23. package/dist/better-auth/index.d.ts.map +1 -1
  24. package/dist/better-auth/index.js +1 -1
  25. package/dist/better-auth/plugin/constants.d.ts +10 -0
  26. package/dist/better-auth/plugin/constants.d.ts.map +1 -1
  27. package/dist/better-auth/plugin/constants.js +163 -153
  28. package/dist/better-auth/plugin/helpers/check-plugin-exists.d.ts +1 -1
  29. package/dist/better-auth/plugin/helpers/check-plugin-exists.d.ts.map +1 -1
  30. package/dist/better-auth/plugin/helpers/check-plugin-exists.js +1 -1
  31. package/dist/better-auth/plugin/helpers/generate-verify-email-url.d.ts.map +1 -1
  32. package/dist/better-auth/plugin/helpers/generate-verify-email-url.js +7 -7
  33. package/dist/better-auth/plugin/helpers/get-admin-access.d.ts +2 -2
  34. package/dist/better-auth/plugin/helpers/get-admin-access.d.ts.map +1 -1
  35. package/dist/better-auth/plugin/helpers/get-admin-access.js +2 -2
  36. package/dist/better-auth/plugin/helpers/get-all-roles.d.ts +2 -2
  37. package/dist/better-auth/plugin/helpers/get-all-roles.d.ts.map +1 -1
  38. package/dist/better-auth/plugin/helpers/get-all-roles.js +4 -4
  39. package/dist/better-auth/plugin/helpers/get-better-auth-schema.d.ts +2 -2
  40. package/dist/better-auth/plugin/helpers/get-better-auth-schema.d.ts.map +1 -1
  41. package/dist/better-auth/plugin/helpers/get-better-auth-schema.js +3 -3
  42. package/dist/better-auth/plugin/helpers/get-collection-slug.d.ts +2 -2
  43. package/dist/better-auth/plugin/helpers/get-collection-slug.d.ts.map +1 -1
  44. package/dist/better-auth/plugin/helpers/get-collection-slug.js +7 -7
  45. package/dist/better-auth/plugin/helpers/get-collection.d.ts +2 -2
  46. package/dist/better-auth/plugin/helpers/get-collection.d.ts.map +1 -1
  47. package/dist/better-auth/plugin/helpers/get-collection.js +1 -1
  48. package/dist/better-auth/plugin/helpers/get-ip.d.ts +1 -1
  49. package/dist/better-auth/plugin/helpers/get-ip.d.ts.map +1 -1
  50. package/dist/better-auth/plugin/helpers/get-ip.js +14 -14
  51. package/dist/better-auth/plugin/helpers/get-signed-cookie.d.ts +1 -1
  52. package/dist/better-auth/plugin/helpers/get-signed-cookie.d.ts.map +1 -1
  53. package/dist/better-auth/plugin/helpers/get-signed-cookie.js +13 -13
  54. package/dist/better-auth/plugin/helpers/index.d.ts +1 -1
  55. package/dist/better-auth/plugin/helpers/index.d.ts.map +1 -1
  56. package/dist/better-auth/plugin/helpers/index.js +1 -1
  57. package/dist/better-auth/plugin/helpers/prepare-session-data.d.ts +2 -2
  58. package/dist/better-auth/plugin/helpers/prepare-session-data.d.ts.map +1 -1
  59. package/dist/better-auth/plugin/helpers/prepare-session-data.js +2 -2
  60. package/dist/better-auth/plugin/helpers/sync-resolved-schema-with-collection-map.d.ts +2 -2
  61. package/dist/better-auth/plugin/helpers/sync-resolved-schema-with-collection-map.d.ts.map +1 -1
  62. package/dist/better-auth/plugin/helpers/sync-resolved-schema-with-collection-map.js +1 -1
  63. package/dist/better-auth/plugin/index.d.ts +7 -11
  64. package/dist/better-auth/plugin/index.d.ts.map +1 -1
  65. package/dist/better-auth/plugin/index.js +3 -26
  66. package/dist/better-auth/plugin/lib/apply-disabled-default-auth-config.d.ts +3 -3
  67. package/dist/better-auth/plugin/lib/apply-disabled-default-auth-config.d.ts.map +1 -1
  68. package/dist/better-auth/plugin/lib/apply-disabled-default-auth-config.js +9 -9
  69. package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.d.ts +2 -2
  70. package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.d.ts.map +1 -1
  71. package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.js +6 -6
  72. package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts +2 -2
  73. package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts.map +1 -1
  74. package/dist/better-auth/plugin/lib/build-collections/accounts/index.js +19 -20
  75. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts +2 -2
  76. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts.map +1 -1
  77. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.js +1 -1
  78. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts +1 -1
  79. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts.map +1 -1
  80. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.js +2 -2
  81. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts +3 -3
  82. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts.map +1 -1
  83. package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.js +21 -21
  84. package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts +2 -2
  85. package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts.map +1 -1
  86. package/dist/better-auth/plugin/lib/build-collections/api-keys.js +26 -26
  87. package/dist/better-auth/plugin/lib/build-collections/device-code.d.ts +2 -2
  88. package/dist/better-auth/plugin/lib/build-collections/device-code.d.ts.map +1 -1
  89. package/dist/better-auth/plugin/lib/build-collections/device-code.js +6 -6
  90. package/dist/better-auth/plugin/lib/build-collections/index.d.ts +3 -3
  91. package/dist/better-auth/plugin/lib/build-collections/index.d.ts.map +1 -1
  92. package/dist/better-auth/plugin/lib/build-collections/index.js +10 -4
  93. package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts +2 -2
  94. package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts.map +1 -1
  95. package/dist/better-auth/plugin/lib/build-collections/invitations.js +14 -14
  96. package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts +2 -2
  97. package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts.map +1 -1
  98. package/dist/better-auth/plugin/lib/build-collections/jwks.js +8 -8
  99. package/dist/better-auth/plugin/lib/build-collections/members.d.ts +2 -2
  100. package/dist/better-auth/plugin/lib/build-collections/members.d.ts.map +1 -1
  101. package/dist/better-auth/plugin/lib/build-collections/members.js +11 -12
  102. package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts +2 -2
  103. package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts.map +1 -1
  104. package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.js +15 -15
  105. package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts +2 -2
  106. package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts.map +1 -1
  107. package/dist/better-auth/plugin/lib/build-collections/oauth-applications.js +16 -16
  108. package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts +2 -2
  109. package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts.map +1 -1
  110. package/dist/better-auth/plugin/lib/build-collections/oauth-consents.js +11 -12
  111. package/dist/better-auth/plugin/lib/build-collections/organization-roles.d.ts +4 -0
  112. package/dist/better-auth/plugin/lib/build-collections/organization-roles.d.ts.map +1 -0
  113. package/dist/better-auth/plugin/lib/build-collections/organization-roles.js +65 -0
  114. package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts +2 -2
  115. package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts.map +1 -1
  116. package/dist/better-auth/plugin/lib/build-collections/organizations.js +61 -13
  117. package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts +2 -2
  118. package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts.map +1 -1
  119. package/dist/better-auth/plugin/lib/build-collections/passkeys.js +15 -16
  120. package/dist/better-auth/plugin/lib/build-collections/rate-limit.d.ts +4 -0
  121. package/dist/better-auth/plugin/lib/build-collections/rate-limit.d.ts.map +1 -0
  122. package/dist/better-auth/plugin/lib/build-collections/rate-limit.js +54 -0
  123. package/dist/better-auth/plugin/lib/build-collections/scim-provider.d.ts +4 -0
  124. package/dist/better-auth/plugin/lib/build-collections/scim-provider.d.ts.map +1 -0
  125. package/dist/better-auth/plugin/lib/build-collections/scim-provider.js +65 -0
  126. package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts +2 -2
  127. package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts.map +1 -1
  128. package/dist/better-auth/plugin/lib/build-collections/sessions.js +21 -22
  129. package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts +2 -2
  130. package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts.map +1 -1
  131. package/dist/better-auth/plugin/lib/build-collections/sso-providers.js +12 -13
  132. package/dist/better-auth/plugin/lib/build-collections/subscriptions.d.ts +2 -2
  133. package/dist/better-auth/plugin/lib/build-collections/subscriptions.d.ts.map +1 -1
  134. package/dist/better-auth/plugin/lib/build-collections/subscriptions.js +17 -18
  135. package/dist/better-auth/plugin/lib/build-collections/team-members.d.ts +2 -2
  136. package/dist/better-auth/plugin/lib/build-collections/team-members.d.ts.map +1 -1
  137. package/dist/better-auth/plugin/lib/build-collections/team-members.js +14 -9
  138. package/dist/better-auth/plugin/lib/build-collections/teams.d.ts +2 -2
  139. package/dist/better-auth/plugin/lib/build-collections/teams.d.ts.map +1 -1
  140. package/dist/better-auth/plugin/lib/build-collections/teams.js +9 -9
  141. package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts +2 -2
  142. package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts.map +1 -1
  143. package/dist/better-auth/plugin/lib/build-collections/two-factors.js +9 -9
  144. package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts +1 -1
  145. package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts.map +1 -1
  146. package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.js +4 -4
  147. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts +5 -5
  148. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts.map +1 -1
  149. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.js +9 -9
  150. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/index.d.ts +4 -4
  151. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/index.d.ts.map +1 -1
  152. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/index.js +1 -1
  153. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts +1 -1
  154. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts.map +1 -1
  155. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.js +17 -17
  156. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts +3 -3
  157. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts.map +1 -1
  158. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.js +7 -7
  159. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts +3 -3
  160. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts.map +1 -1
  161. package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.js +7 -7
  162. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.d.ts +1 -1
  163. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.d.ts.map +1 -1
  164. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.js +10 -11
  165. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.d.ts +1 -1
  166. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.d.ts.map +1 -1
  167. package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.js +9 -9
  168. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts +1 -1
  169. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts.map +1 -1
  170. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.js +3 -3
  171. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.d.ts +2 -2
  172. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.d.ts.map +1 -1
  173. package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.js +2 -2
  174. package/dist/better-auth/plugin/lib/build-collections/users/hooks/index.d.ts +6 -6
  175. package/dist/better-auth/plugin/lib/build-collections/users/hooks/index.d.ts.map +1 -1
  176. package/dist/better-auth/plugin/lib/build-collections/users/hooks/index.js +1 -1
  177. package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts +1 -1
  178. package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts.map +1 -1
  179. package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.js +1 -1
  180. package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.d.ts +1 -1
  181. package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.d.ts.map +1 -1
  182. package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.js +12 -12
  183. package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts +2 -2
  184. package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts.map +1 -1
  185. package/dist/better-auth/plugin/lib/build-collections/users/index.js +38 -38
  186. package/dist/better-auth/plugin/lib/build-collections/utils/collection-schema.d.ts +3 -3
  187. package/dist/better-auth/plugin/lib/build-collections/utils/collection-schema.d.ts.map +1 -1
  188. package/dist/better-auth/plugin/lib/build-collections/utils/collection-schema.js +3 -3
  189. package/dist/better-auth/plugin/lib/build-collections/utils/filter-properties.d.ts +2 -2
  190. package/dist/better-auth/plugin/lib/build-collections/utils/filter-properties.d.ts.map +1 -1
  191. package/dist/better-auth/plugin/lib/build-collections/utils/filter-properties.js +53 -53
  192. package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts +1 -1
  193. package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts.map +1 -1
  194. package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.js +7 -7
  195. package/dist/better-auth/plugin/lib/build-collections/utils/model-field-transformations.d.ts +3 -3
  196. package/dist/better-auth/plugin/lib/build-collections/utils/model-field-transformations.d.ts.map +1 -1
  197. package/dist/better-auth/plugin/lib/build-collections/utils/model-field-transformations.js +1 -1
  198. package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.d.ts +1 -2
  199. package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.d.ts.map +1 -1
  200. package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.js +12 -12
  201. package/dist/better-auth/plugin/lib/build-collections/utils/transform-schema-fields-to-payload.d.ts +4 -4
  202. package/dist/better-auth/plugin/lib/build-collections/utils/transform-schema-fields-to-payload.d.ts.map +1 -1
  203. package/dist/better-auth/plugin/lib/build-collections/utils/transform-schema-fields-to-payload.js +17 -17
  204. package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts +2 -2
  205. package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts.map +1 -1
  206. package/dist/better-auth/plugin/lib/build-collections/verifications.js +10 -10
  207. package/dist/better-auth/plugin/lib/get-payload-auth.d.ts +3 -3
  208. package/dist/better-auth/plugin/lib/get-payload-auth.d.ts.map +1 -1
  209. package/dist/better-auth/plugin/lib/get-payload-auth.js +1 -1
  210. package/dist/better-auth/plugin/lib/init-better-auth.d.ts +4 -4
  211. package/dist/better-auth/plugin/lib/init-better-auth.d.ts.map +1 -1
  212. package/dist/better-auth/plugin/lib/init-better-auth.js +1 -1
  213. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts +2 -2
  214. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts.map +1 -1
  215. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.js +1 -1
  216. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.d.ts +1 -1
  217. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.d.ts.map +1 -1
  218. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.js +1 -1
  219. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/device-authorization-plugin.d.ts +1 -1
  220. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/device-authorization-plugin.d.ts.map +1 -1
  221. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/device-authorization-plugin.js +1 -1
  222. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts +4 -5
  223. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts.map +1 -1
  224. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.js +11 -11
  225. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.d.ts +1 -1
  226. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.d.ts.map +1 -1
  227. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.js +1 -1
  228. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.d.ts +1 -1
  229. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.d.ts.map +1 -1
  230. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.js +1 -1
  231. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.d.ts +1 -1
  232. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.d.ts.map +1 -1
  233. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.js +2 -2
  234. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.d.ts +1 -1
  235. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.d.ts.map +1 -1
  236. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.js +1 -1
  237. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/two-factor-plugin.d.ts +1 -1
  238. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/two-factor-plugin.d.ts.map +1 -1
  239. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/two-factor-plugin.js +1 -1
  240. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/admin-after-role-middleware.d.ts +1 -1
  241. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/admin-after-role-middleware.d.ts.map +1 -1
  242. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/admin-after-role-middleware.js +6 -6
  243. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/admin-before-role-middleware.d.ts +1 -1
  244. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/admin-before-role-middleware.d.ts.map +1 -1
  245. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/admin-before-role-middleware.js +6 -6
  246. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/apply-save-to-jwt-returned.d.ts +3 -3
  247. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/apply-save-to-jwt-returned.d.ts.map +1 -1
  248. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/apply-save-to-jwt-returned.js +3 -3
  249. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.d.ts +1 -1
  250. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.d.ts.map +1 -1
  251. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.js +6 -7
  252. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.d.ts.map +1 -1
  253. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.js +6 -7
  254. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/require-admin-invite-for-sign-up-middleware.d.ts +3 -3
  255. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/require-admin-invite-for-sign-up-middleware.d.ts.map +1 -1
  256. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/require-admin-invite-for-sign-up-middleware.js +9 -10
  257. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/use-admin-invite-after-email-sign-up-middleware.d.ts +1 -1
  258. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/use-admin-invite-after-email-sign-up-middleware.d.ts.map +1 -1
  259. package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/use-admin-invite-after-email-sign-up-middleware.js +12 -12
  260. package/dist/better-auth/plugin/lib/set-login-methods.d.ts +3 -3
  261. package/dist/better-auth/plugin/lib/set-login-methods.d.ts.map +1 -1
  262. package/dist/better-auth/plugin/lib/set-login-methods.js +4 -5
  263. package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts +5 -5
  264. package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts.map +1 -1
  265. package/dist/better-auth/plugin/payload/components/admin-buttons/index.js +20 -20
  266. package/dist/better-auth/plugin/payload/components/admin-buttons/index.scss +6 -1
  267. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts +5 -5
  268. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts.map +1 -1
  269. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.js +30 -30
  270. package/dist/better-auth/plugin/payload/components/admin-invite-button/index.scss +6 -2
  271. package/dist/better-auth/plugin/payload/components/login-form/alternative-methods.d.ts +3 -3
  272. package/dist/better-auth/plugin/payload/components/login-form/alternative-methods.d.ts.map +1 -1
  273. package/dist/better-auth/plugin/payload/components/login-form/alternative-methods.js +32 -32
  274. package/dist/better-auth/plugin/payload/components/login-form/context.d.ts +9 -9
  275. package/dist/better-auth/plugin/payload/components/login-form/context.d.ts.map +1 -1
  276. package/dist/better-auth/plugin/payload/components/login-form/context.js +18 -18
  277. package/dist/better-auth/plugin/payload/components/login-form/credentials-form.d.ts +3 -3
  278. package/dist/better-auth/plugin/payload/components/login-form/credentials-form.d.ts.map +1 -1
  279. package/dist/better-auth/plugin/payload/components/login-form/credentials-form.js +32 -32
  280. package/dist/better-auth/plugin/payload/components/login-form/index.d.ts +4 -3
  281. package/dist/better-auth/plugin/payload/components/login-form/index.d.ts.map +1 -1
  282. package/dist/better-auth/plugin/payload/components/login-form/index.js +3 -3
  283. package/dist/better-auth/plugin/payload/components/login-form/index.scss +1 -2
  284. package/dist/better-auth/plugin/payload/components/logout-button.d.ts +1 -1
  285. package/dist/better-auth/plugin/payload/components/logout-button.d.ts.map +1 -1
  286. package/dist/better-auth/plugin/payload/components/logout-button.js +7 -7
  287. package/dist/better-auth/plugin/payload/components/passkeys/add-button.d.ts +2 -2
  288. package/dist/better-auth/plugin/payload/components/passkeys/add-button.d.ts.map +1 -1
  289. package/dist/better-auth/plugin/payload/components/passkeys/add-button.js +17 -17
  290. package/dist/better-auth/plugin/payload/components/passkeys/client.d.ts +2 -3
  291. package/dist/better-auth/plugin/payload/components/passkeys/client.d.ts.map +1 -1
  292. package/dist/better-auth/plugin/payload/components/passkeys/client.js +9 -9
  293. package/dist/better-auth/plugin/payload/components/passkeys/index.d.ts +4 -4
  294. package/dist/better-auth/plugin/payload/components/passkeys/index.d.ts.map +1 -1
  295. package/dist/better-auth/plugin/payload/components/passkeys/index.js +4 -4
  296. package/dist/better-auth/plugin/payload/components/passkeys/index.scss +8 -1
  297. package/dist/better-auth/plugin/payload/components/passkeys/list.d.ts +3 -3
  298. package/dist/better-auth/plugin/payload/components/passkeys/list.d.ts.map +1 -1
  299. package/dist/better-auth/plugin/payload/components/passkeys/list.js +12 -12
  300. package/dist/better-auth/plugin/payload/components/passkeys/types.d.ts +8 -8
  301. package/dist/better-auth/plugin/payload/components/passkeys/types.d.ts.map +1 -1
  302. package/dist/better-auth/plugin/payload/components/passkeys/types.js +1 -1
  303. package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts +1 -2
  304. package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts.map +1 -1
  305. package/dist/better-auth/plugin/payload/components/rsc-redirect.js +5 -5
  306. package/dist/better-auth/plugin/payload/components/token-field.d.ts +2 -3
  307. package/dist/better-auth/plugin/payload/components/token-field.d.ts.map +1 -1
  308. package/dist/better-auth/plugin/payload/components/token-field.js +5 -6
  309. package/dist/better-auth/plugin/payload/components/two-factor-auth/index.d.ts +5 -5
  310. package/dist/better-auth/plugin/payload/components/two-factor-auth/index.d.ts.map +1 -1
  311. package/dist/better-auth/plugin/payload/components/two-factor-auth/index.js +41 -40
  312. package/dist/better-auth/plugin/payload/components/two-factor-auth/index.scss +6 -3
  313. package/dist/better-auth/plugin/payload/exports/client.d.ts +6 -7
  314. package/dist/better-auth/plugin/payload/exports/client.d.ts.map +1 -1
  315. package/dist/better-auth/plugin/payload/exports/client.js +3 -4
  316. package/dist/better-auth/plugin/payload/exports/rsc.d.ts +8 -8
  317. package/dist/better-auth/plugin/payload/exports/rsc.d.ts.map +1 -1
  318. package/dist/better-auth/plugin/payload/exports/rsc.js +5 -5
  319. package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts +1 -1
  320. package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts.map +1 -1
  321. package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.js +2 -2
  322. package/dist/better-auth/plugin/payload/utils/get-safe-redirect.d.ts.map +1 -1
  323. package/dist/better-auth/plugin/payload/utils/get-safe-redirect.js +10 -11
  324. package/dist/better-auth/plugin/payload/views/admin-login/client.d.ts +5 -6
  325. package/dist/better-auth/plugin/payload/views/admin-login/client.d.ts.map +1 -1
  326. package/dist/better-auth/plugin/payload/views/admin-login/client.js +6 -7
  327. package/dist/better-auth/plugin/payload/views/admin-login/index.d.ts +5 -5
  328. package/dist/better-auth/plugin/payload/views/admin-login/index.d.ts.map +1 -1
  329. package/dist/better-auth/plugin/payload/views/admin-login/index.js +21 -21
  330. package/dist/better-auth/plugin/payload/views/admin-signup/client.d.ts +7 -7
  331. package/dist/better-auth/plugin/payload/views/admin-signup/client.d.ts.map +1 -1
  332. package/dist/better-auth/plugin/payload/views/admin-signup/client.js +29 -29
  333. package/dist/better-auth/plugin/payload/views/admin-signup/index.d.ts +5 -5
  334. package/dist/better-auth/plugin/payload/views/admin-signup/index.d.ts.map +1 -1
  335. package/dist/better-auth/plugin/payload/views/admin-signup/index.js +14 -14
  336. package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts +3 -4
  337. package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts.map +1 -1
  338. package/dist/better-auth/plugin/payload/views/forgot-password/client.js +22 -22
  339. package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts +7 -7
  340. package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts.map +1 -1
  341. package/dist/better-auth/plugin/payload/views/forgot-password/index.js +10 -10
  342. package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts +4 -4
  343. package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts.map +1 -1
  344. package/dist/better-auth/plugin/payload/views/reset-password/client.js +22 -22
  345. package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts +7 -7
  346. package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts.map +1 -1
  347. package/dist/better-auth/plugin/payload/views/reset-password/index.js +12 -12
  348. package/dist/better-auth/plugin/payload/views/two-factor-verify/client.d.ts +4 -2
  349. package/dist/better-auth/plugin/payload/views/two-factor-verify/client.d.ts.map +1 -1
  350. package/dist/better-auth/plugin/payload/views/two-factor-verify/client.js +17 -17
  351. package/dist/better-auth/plugin/payload/views/two-factor-verify/index.d.ts +5 -5
  352. package/dist/better-auth/plugin/payload/views/two-factor-verify/index.d.ts.map +1 -1
  353. package/dist/better-auth/plugin/payload/views/two-factor-verify/index.js +10 -10
  354. package/dist/better-auth/plugin/types.d.ts +28 -30
  355. package/dist/better-auth/plugin/types.d.ts.map +1 -1
  356. package/dist/better-auth/plugin/types.js +1 -1
  357. package/dist/better-auth/plugin/utils/set.d.ts.map +1 -1
  358. package/dist/better-auth/plugin/utils/set.js +4 -4
  359. package/dist/better-auth/scripts/generate-types.js +58 -61
  360. package/dist/better-auth/types.d.ts +2 -2
  361. package/dist/better-auth/types.d.ts.map +1 -1
  362. package/dist/better-auth/types.js +1 -1
  363. package/dist/index.d.ts +1 -1
  364. package/dist/index.d.ts.map +1 -1
  365. package/dist/index.js +2 -2
  366. package/dist/shared/components/icons.d.ts +2 -3
  367. package/dist/shared/components/icons.d.ts.map +1 -1
  368. package/dist/shared/components/icons.js +17 -18
  369. package/dist/shared/components/logo.d.ts +2 -3
  370. package/dist/shared/components/logo.d.ts.map +1 -1
  371. package/dist/shared/components/logo.js +3 -3
  372. package/dist/shared/form/components/submit.d.ts +1 -1
  373. package/dist/shared/form/components/submit.d.ts.map +1 -1
  374. package/dist/shared/form/components/submit.js +2 -2
  375. package/dist/shared/form/fields/text-field.d.ts.map +1 -1
  376. package/dist/shared/form/fields/text-field.js +2 -2
  377. package/dist/shared/form/index.d.ts +13 -19
  378. package/dist/shared/form/index.d.ts.map +1 -1
  379. package/dist/shared/form/index.js +4 -4
  380. package/dist/shared/form/ui/header/index.d.ts +6 -6
  381. package/dist/shared/form/ui/header/index.d.ts.map +1 -1
  382. package/dist/shared/form/ui/header/index.js +4 -5
  383. package/dist/shared/form/ui/header/index.scss +1 -1
  384. package/dist/shared/form/ui/index.d.ts +26 -23
  385. package/dist/shared/form/ui/index.d.ts.map +1 -1
  386. package/dist/shared/form/ui/index.js +33 -20
  387. package/dist/shared/form/validation.d.ts +1 -1
  388. package/dist/shared/form/validation.d.ts.map +1 -1
  389. package/dist/shared/form/validation.js +27 -22
  390. package/dist/shared/index.d.ts +2 -2
  391. package/dist/shared/index.d.ts.map +1 -1
  392. package/dist/shared/index.js +1 -1
  393. package/dist/shared/payload/fields/field-copy-button/index.css +2 -2
  394. package/dist/shared/payload/fields/field-copy-button/index.d.ts +2 -2
  395. package/dist/shared/payload/fields/field-copy-button/index.d.ts.map +1 -1
  396. package/dist/shared/payload/fields/field-copy-button/index.js +2 -2
  397. package/dist/shared/payload/fields/generate-uuid-button/index.d.ts +2 -2
  398. package/dist/shared/payload/fields/generate-uuid-button/index.d.ts.map +1 -1
  399. package/dist/shared/payload/fields/generate-uuid-button/index.js +2 -2
  400. package/dist/shared/payload/fields/index.d.ts +2 -2
  401. package/dist/shared/payload/fields/index.d.ts.map +1 -1
  402. package/dist/shared/payload/fields/index.js +1 -1
  403. package/dist/shared/utils/regex.d.ts.map +1 -1
  404. package/dist/shared/utils/regex.js +1 -1
  405. package/dist/shared/utils/try-catch.d.ts.map +1 -1
  406. package/dist/shared/utils/try-catch.js +1 -1
  407. package/dist/shared/utils/value-or-default.d.ts.map +1 -1
  408. package/dist/shared/utils/value-or-default.js +2 -2
  409. package/package.json +28 -27
@@ -36,6 +36,7 @@
36
36
  right: 0;
37
37
  margin-block: 0 !important;
38
38
  padding: 10px !important;
39
+
39
40
  svg {
40
41
  width: 24px;
41
42
  height: 24px;
@@ -47,11 +48,13 @@
47
48
  flex-direction: column;
48
49
  gap: 1.5rem;
49
50
  padding: 1.5rem 1.5rem 1rem 1.5rem;
51
+
50
52
  h2 {
51
53
  font-size: 1.5rem;
52
54
  font-weight: 600;
53
55
  margin: 0;
54
56
  }
57
+
55
58
  p {
56
59
  margin: 0;
57
60
  color: var(--theme-elevation-500);
@@ -62,6 +65,7 @@
62
65
  margin-bottom: 1rem;
63
66
  }
64
67
  }
68
+
65
69
  .passkeys-field {
66
70
  &__list {
67
71
  list-style: disc;
@@ -70,6 +74,7 @@
70
74
  display: flex;
71
75
  flex-direction: column;
72
76
  }
77
+
73
78
  &__list-item {
74
79
  display: flex;
75
80
  background-color: var(--theme-input-bg);
@@ -80,12 +85,14 @@
80
85
  border-radius: var(--style-radius-m);
81
86
  color: var(--theme-elevation-800);
82
87
  }
88
+
83
89
  &__list-item-date {
84
90
  color: var(--theme-elevation-500);
85
91
  }
92
+
86
93
  &__delete-button {
87
94
  margin-block: 0;
88
95
  margin-left: auto;
89
96
  }
90
97
  }
91
- }
98
+ }
@@ -1,9 +1,9 @@
1
- import React from 'react';
2
- import type { PasskeyWithId } from './types';
1
+ import React from "react";
2
+ import type { PasskeyWithId } from "./types";
3
3
  interface PasskeyListProps {
4
4
  passkeys: PasskeyWithId[];
5
5
  onDelete?: (id: string) => void;
6
6
  }
7
- export declare const PasskeyList: React.FC<PasskeyListProps>;
7
+ export declare function PasskeyList({ passkeys, onDelete }: PasskeyListProps): React.JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/payload/components/passkeys/list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE5C,UAAU,gBAAgB;IACxB,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAA;CAChC;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAiClD,CAAA"}
1
+ {"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/payload/components/passkeys/list.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,UAAU,gBAAgB;IACxB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACjC;AAED,wBAAgB,WAAW,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,gBAAgB,qBAuCnE"}
@@ -1,12 +1,12 @@
1
- 'use client';
1
+ "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import React from "react";
4
4
  import { Fingerprint, Trash } from "lucide-react";
5
5
  import { Button } from "@payloadcms/ui";
6
- export const PasskeyList = ({ passkeys, onDelete })=>{
6
+ export function PasskeyList({ passkeys, onDelete }) {
7
7
  if (passkeys.length === 0) return /*#__PURE__*/ _jsx("p", {
8
8
  style: {
9
- marginBottom: '1rem'
9
+ marginBottom: "1rem"
10
10
  },
11
11
  children: "No passkeys found."
12
12
  });
@@ -22,7 +22,7 @@ export const PasskeyList = ({ passkeys, onDelete })=>{
22
22
  size: 16
23
23
  }),
24
24
  /*#__PURE__*/ _jsx("span", {
25
- children: pk.name || 'My Passkey'
25
+ children: pk.name || "My Passkey"
26
26
  }),
27
27
  /*#__PURE__*/ _jsx("span", {
28
28
  className: "passkeys-field__list-item-date",
@@ -30,12 +30,12 @@ export const PasskeyList = ({ passkeys, onDelete })=>{
30
30
  }),
31
31
  /*#__PURE__*/ _jsx("span", {
32
32
  className: "passkeys-field__list-item-date",
33
- children: new Date(createdAt).toLocaleString('en-US', {
34
- month: 'long',
35
- day: 'numeric',
36
- year: 'numeric',
37
- hour: 'numeric',
38
- minute: '2-digit',
33
+ children: new Date(createdAt).toLocaleString("en-US", {
34
+ month: "long",
35
+ day: "numeric",
36
+ year: "numeric",
37
+ hour: "numeric",
38
+ minute: "2-digit",
39
39
  hour12: true
40
40
  })
41
41
  }),
@@ -52,6 +52,6 @@ export const PasskeyList = ({ passkeys, onDelete })=>{
52
52
  }, id);
53
53
  })
54
54
  });
55
- };
55
+ }
56
56
 
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9wbHVnaW4vcGF5bG9hZC9jb21wb25lbnRzL3Bhc3NrZXlzL2xpc3QudHN4Il0sInNvdXJjZXNDb250ZW50IjpbIid1c2UgY2xpZW50J1xuXG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnXG5pbXBvcnQgeyBGaW5nZXJwcmludCwgVHJhc2ggfSBmcm9tICdsdWNpZGUtcmVhY3QnXG5pbXBvcnQgeyBCdXR0b24gfSBmcm9tICdAcGF5bG9hZGNtcy91aSdcbmltcG9ydCB0eXBlIHsgUGFzc2tleVdpdGhJZCB9IGZyb20gJy4vdHlwZXMnXG5cbmludGVyZmFjZSBQYXNza2V5TGlzdFByb3BzIHtcbiAgcGFzc2tleXM6IFBhc3NrZXlXaXRoSWRbXVxuICBvbkRlbGV0ZT86IChpZDogc3RyaW5nKSA9PiB2b2lkXG59XG5cbmV4cG9ydCBjb25zdCBQYXNza2V5TGl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CBcIk15IFBhc3NrZXlcIn08L3NwYW4+XG4gICAgICAgICAgICA8c3BhbiBjbGFzc05hbWU9XCJwYXNza2V5cy1maWVsZF9fbGlzdC1pdGVtLWRhdGVcIj4gLSA8L3NwYW4+XG4gICAgICAgICAgICA8c3BhbiBjbGFzc05hbWU9XCJwYXNza2V5cy1maWVsZF9fbGlzdC1pdGVtLWRhdGVcIj5cbiAgICAgICAgICAgICAge25ldyBEYXRlKGNyZWF0ZWRBdCkudG9Mb2NhbGVTdHJpbmcoXCJlbi1VU1wiLCB7XG4gICAgICAgICAgICAgICAgbW9udGg6IFwibG9uZ1wiLFxuICAgICAgICAgICAgICAgIGRheTogXCJudW1lcmljXCIsXG4gICAgICAgICAgICAgICAgeWVhcjogXCJudW1lcmljXCIsXG4gICAgICAgICAgICAgICAgaG91cjogXCJudW1lcmljXCIsXG4gICAgICAgICAgICAgICAgbWludXRlOiBcIjItZGlnaXRcIixcbiAgICAgICAgICAgICAgICBob3VyMTI6IHRydWVcbiAgICAgICAgICAgICAgfSl9XG4gICAgICAgICAgICA8L3NwYW4+XG4gICAgICAgICAgICB7b25EZWxldGUgJiYgKFxuICAgICAgICAgICAgICA8QnV0dG9uXG4gICAgICAgICAgICAgICAgYnV0dG9uU3R5bGU9XCJub25lXCJcbiAgICAgICAgICAgICAgICBzaXplPVwic21hbGxcIlxuICAgICAgICAgICAgICAgIGNsYXNzTmFtZT1cInBhc3NrZXlzLWZpZWxkX19kZWxldGUtYnV0dG9uXCJcbiAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiBvbkRlbGV0ZShpZCl9XG4gICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8VHJhc2ggc2l6ZT17MTZ9IC8+XG4gICAgICAgICAgICAgIDwvQnV0dG9uPlxuICAgICAgICAgICAgKX1cbiAgICAgICAgICA8L2xpPlxuICAgICAgICApO1xuICAgICAgfSl9XG4gICAgPC91bD5cbiAgKTtcbn1cbiJdLCJuYW1lcyI6WyJSZ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QkFBS1AsV0FBVTtrQ0FDYixJQUFJUyxLQUFLTCxXQUFXTSxjQUFjLENBQUMsU0FBUzs0QkFDM0NDLE9BQU87NEJBQ1BDLEtBQUs7NEJBQ0xDLE1BQU07NEJBQ05DLE1BQU07NEJBQ05DLFFBQVE7NEJBQ1JDLFFBQVE7d0JBQ1Y7O29CQUVEdEIsMEJBQ0MsS0FBQ0g7d0JBQ0MwQixhQUFZO3dCQUNaWCxNQUFLO3dCQUNMTixXQUFVO3dCQUNWa0IsU0FBUyxJQUFNeEIsU0FBU1M7a0NBRXhCLGNBQUEsS0FBQ2I7NEJBQU1nQixNQUFNOzs7O2VBckJWSDtRQTBCYjs7QUFHTiJ9
@@ -1,17 +1,17 @@
1
- import type { UIFieldServerProps } from 'payload';
2
- import type { BetterAuthPluginOptions, BuiltBetterAuthSchema } from '@/better-auth/types';
3
- import type { Passkey } from '@/better-auth/generated-types';
1
+ import type { UIFieldServerProps } from "payload";
2
+ import type { Passkey } from "@/better-auth/generated-types";
3
+ import type { BuiltBetterAuthSchema, PayloadAuthOptions } from "@/better-auth/types";
4
4
  export type PasskeyWithId = Passkey & {
5
5
  id: string;
6
6
  createdAt: Date;
7
7
  };
8
- export type PasskeysServerComponentProps = UIFieldServerProps & {
8
+ export interface PasskeysServerComponentProps extends UIFieldServerProps {
9
9
  schema: BuiltBetterAuthSchema;
10
10
  passkeySlug: string;
11
11
  passkeyUserIdFieldName: string;
12
- pluginOptions: BetterAuthPluginOptions;
13
- };
14
- export type PasskeysClientComponentProps = {
12
+ pluginOptions: PayloadAuthOptions;
13
+ }
14
+ export interface PasskeysClientComponentProps {
15
15
  initialPasskeys: PasskeyWithId[];
16
16
  documentId: string | number;
17
17
  currentUserId: string | number;
@@ -19,5 +19,5 @@ export type PasskeysClientComponentProps = {
19
19
  passkeyUserIdFieldName: string;
20
20
  baseURL?: string;
21
21
  basePath?: string;
22
- };
22
+ }
23
23
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/payload/components/passkeys/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AACzF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAA;AAE5D,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,IAAI,CAAA;CAAE,CAAA;AAErE,MAAM,MAAM,4BAA4B,GAAG,kBAAkB,GAAG;IAC9D,MAAM,EAAE,qBAAqB,CAAA;IAC7B,WAAW,EAAE,MAAM,CAAA;IACnB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,aAAa,EAAE,uBAAuB,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG;IACzC,eAAe,EAAE,aAAa,EAAE,CAAA;IAChC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;IAC3B,aAAa,EAAE,MAAM,GAAG,MAAM,CAAA;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,sBAAsB,EAAE,MAAM,CAAA;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/payload/components/passkeys/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,KAAK,EACV,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,qBAAqB,CAAC;AAE7B,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG;IAAE,EAAE,EAAE,MAAM,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cm9tIFwiQC9iZXR0ZXItYXV0aC90eXBlc1wiO1xuXG5leHBvcnQgdHlwZSBQYXNza2V5V2l0aElkID0gUGFzc2tleSAmIHsgaWQ6IHN0cmluZzsgY3JlYXRlZEF0OiBEYXRlIH07XG5cbmV4cG9ydCBpbnRlcmZhY2UgUGFzc2tleXNTZXJ2ZXJDb21wb25lbnRQcm9wcyBleHRlbmRzIFVJRmllbGRTZXJ2ZXJQcm9wcyB7XG4gIHNjaGVtYTogQnVpbHRCZXR0ZXJBdXRoU2NoZW1hO1xuICBwYXNza2V5U2x1Zzogc3RyaW5nO1xuICBwYXNza2V5VXNlcklkRmllbGROYW1lOiBzdHJpbmc7XG4gIHBsdWdpbk9wdGlvbnM6IFBheWxvYWRBdXRoT3B0aW9ucztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBQYXNza2V5c0NsaWVudENvbXBvbmVudFByb3BzIHtcbiAgaW5pdGlhbFBhc3NrZXlzOiBQYXNza2V5V2l0aElkW107XG4gIGRvY3VtZW50SWQ6IHN0cmluZyB8IG51bWJlcjtcbiAgY3VycmVudFVzZXJJZDogc3RyaW5nIHwgbnVtYmVyO1xuICBwYXNza2V5U2x1Zzogc3RyaW5nO1xuICBwYXNza2V5VXNlcklkRmllbGROYW1lOiBzdHJpbmc7XG4gIGJhc2VVUkw/OiBzdHJpbmc7XG4gIGJhc2VQYXRoPzogc3RyaW5nO1xufVxuIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWdCQSxXQVFDIn0=
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  type RSCRedirectProps = {
3
2
  redirectTo: string;
4
3
  searchParams?: Record<string, string | string[]>;
5
4
  };
6
- declare const RSCRedirect: React.FC<RSCRedirectProps>;
5
+ declare function RSCRedirect({ redirectTo, searchParams }: RSCRedirectProps): void;
7
6
  export default RSCRedirect;
8
7
  //# sourceMappingURL=rsc-redirect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rsc-redirect.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/plugin/payload/components/rsc-redirect.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;CACjD,CAAA;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAO3C,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"rsc-redirect.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/plugin/payload/components/rsc-redirect.tsx"],"names":[],"mappings":"AAGA,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAC;CAClD,CAAC;AAEF,iBAAS,WAAW,CAAC,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,gBAAgB,QAOlE;AAED,eAAe,WAAW,CAAC"}
@@ -1,13 +1,13 @@
1
- import React from "react";
2
1
  import { redirect } from "next/navigation";
3
- const RSCRedirect = ({ redirectTo, searchParams })=>{
2
+ import React from "react";
3
+ function RSCRedirect({ redirectTo, searchParams }) {
4
4
  // Forward the redirect query param if present
5
5
  const redirectParam = searchParams?.redirect;
6
- if (redirectParam && typeof redirectParam === 'string') {
6
+ if (redirectParam && typeof redirectParam === "string") {
7
7
  redirect(`${redirectTo}?redirect=${encodeURIComponent(redirectParam)}`);
8
8
  }
9
9
  redirect(redirectTo);
10
- };
10
+ }
11
11
  export default RSCRedirect;
12
12
 
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9wbHVnaW4vcGF5bG9hZC9jb21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kaXJlY3RUb30/cmVkaXJlY3Q9JHtlbmNvZGVVUklDb21wb25lbnQocmVkaXJlY3RQYXJhbSl9YCk7XG4gIH1cbiAgcmVkaXJlY3QocmVkaXJlY3RUbyk7XG59XG5cbmV4cG9ydCBkZWZhdWx0IFJTQ1JlZGlyZWN0O1xuIl0sIm5hbWVzIjpbInJlZGlyZWN0IiwiUmVhY3QiLCJSU0NSZWRpcmVjdCIsInJlZGlyZWN0VG8iLCJzZWFyY2hQYXJhbXMiLCJyZWRpcmVjdFBhcmFtIiwiZW5jb2RlVVJJQ29tcG9uZW50Il0sIm1hcHBpbmdzIjoiQUFBQSxTQUFTQSxRQUFRLFFBQVEsa0JBQWtCO0FBQzNDLE9BQU9DLFdBQVcsUUFBUTtBQU8xQixTQUFTQyxZQUFZLEVBQUVDLFVBQVUsRUFBRUMsWUFBWSxFQUFvQjtJQUNqRSw4Q0FBOEM7SUFDOUMsTUFBTUMsZ0JBQWdCRCxjQUFjSjtJQUNwQyxJQUFJSyxpQkFBaUIsT0FBT0Esa0JBQWtCLFVBQVU7UUFDdERMLFNBQVMsR0FBR0csV0FBVyxVQUFVLEVBQUVHLG1CQUFtQkQsZ0JBQWdCO0lBQ3hFO0lBQ0FMLFNBQVNHO0FBQ1g7QUFFQSxlQUFlRCxZQUFZIn0=
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { TextFieldClientProps } from 'payload';
3
- declare const AdminInviteTokenField: React.FC<TextFieldClientProps>;
1
+ import { TextFieldClientProps } from "payload";
2
+ declare function AdminInviteTokenField({ ...props }: TextFieldClientProps): import("react").JSX.Element;
4
3
  export default AdminInviteTokenField;
5
4
  //# sourceMappingURL=token-field.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"token-field.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/plugin/payload/components/token-field.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAA;AAE9C,QAAA,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAYzD,CAAA;AAED,eAAe,qBAAqB,CAAA"}
1
+ {"version":3,"file":"token-field.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/plugin/payload/components/token-field.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/C,iBAAS,qBAAqB,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,oBAAoB,+BAoBhE;AAED,eAAe,qBAAqB,CAAC"}
@@ -1,14 +1,13 @@
1
- 'use client';
1
+ "use client";
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import React from "react";
4
3
  import { Button, TextInput, useField, useFormFields } from "@payloadcms/ui";
5
- const AdminInviteTokenField = (props)=>{
4
+ function AdminInviteTokenField({ ...props }) {
6
5
  const { path } = props;
7
6
  const { setValue } = useField({
8
7
  path
9
8
  });
10
9
  const token = useFormFields(([fields])=>fields.token);
11
- const value = token.value ?? '';
10
+ const value = token.value ?? "";
12
11
  return /*#__PURE__*/ _jsxs("div", {
13
12
  children: [
14
13
  /*#__PURE__*/ _jsx(Button, {
@@ -24,7 +23,7 @@ const AdminInviteTokenField = (props)=>{
24
23
  })
25
24
  ]
26
25
  });
27
- };
26
+ }
28
27
  export default AdminInviteTokenField;
29
28
 
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9wbHVnaW4vcGF5bG9hZC9jb21wb25lbnRzL3Rva2VuLWZpZWxkLnRzeCJdLCJzb3VyY2VzQ29udGVudCI6WyIndXNlIGNsaWVudCdcblxuaW1wb3J0IFJlYWN0IGZyb20gJ3JlYWN0J1xuaW1wb3J0IHsgQnV0dG9uLCBUZXh0SW5wdXQsIHVzZUZpZWxkLCB1c2VGb3JtRmllbGRz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VSUQiLCJyZWFkT25seSIsImxhYmVsIiwicGxhY2Vob2xkZXIiXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBLFNBQVNBLE1BQU0sRUFBRUMsU0FBUyxFQUFFQyxRQUFRLEVBQUVDLGFBQWEsUUFBUSxpQkFBaUI7QUFHNUUsU0FBU0Msc0JBQXNCLEVBQUUsR0FBR0MsT0FBNkI7SUFDL0QsTUFBTSxFQUFFQyxJQUFJLEVBQUUsR0FBR0Q7SUFDakIsTUFBTSxFQUFFRSxRQUFRLEVBQUUsR0FBR0wsU0FBUztRQUFFSTtJQUFLO0lBQ3JDLE1BQU1FLFFBQVFMLGNBQWMsQ0FBQyxDQUFDTSxPQUFPLEdBQUtBLE9BQU9ELEtBQUs7SUFDdEQsTUFBTUUsUUFBUSxBQUFDRixNQUFNRSxLQUFLLElBQWU7SUFFekMscUJBQ0UsTUFBQ0M7OzBCQUNDLEtBQUNYO2dCQUFPWSxTQUFTLElBQU1MLFNBQVNNLE9BQU9DLFVBQVU7MEJBQUs7OzBCQUd0RCxLQUFDYjtnQkFDQ0ssTUFBTUE7Z0JBQ05TLFFBQVE7Z0JBQ1JDLE9BQU07Z0JBQ05DLGFBQVk7Z0JBQ1pQLE9BQU9BOzs7O0FBSWY7QUFFQSxlQUFlTixzQkFBc0IifQ==
@@ -1,9 +1,9 @@
1
- import './index.scss';
2
- import React from 'react';
3
- type TwoFactorAuthProps = {
1
+ import "./index.scss";
2
+ import React from "react";
3
+ interface TwoFactorAuthProps {
4
4
  baseURL?: string;
5
5
  basePath?: string;
6
- };
7
- export declare const TwoFactorAuth: React.FC<TwoFactorAuthProps>;
6
+ }
7
+ export declare function TwoFactorAuth({ baseURL, basePath }: TwoFactorAuthProps): React.JSX.Element;
8
8
  export {};
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/payload/components/two-factor-auth/index.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAA;AAErB,OAAO,KAA4B,MAAM,OAAO,CAAA;AAahD,KAAK,kBAAkB,GAAG;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqPtD,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/payload/components/two-factor-auth/index.tsx"],"names":[],"mappings":"AAEA,OAAO,cAAc,CAAC;AAetB,OAAO,KAA4B,MAAM,OAAO,CAAC;AAQjD,UAAU,kBAAkB;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,aAAa,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,kBAAkB,qBAiUtE"}