payload-auth 1.0.2 → 1.1.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.
- package/dist/better-auth/adapter/index.d.ts +2 -2
- package/dist/better-auth/adapter/index.d.ts.map +1 -1
- package/dist/better-auth/adapter/index.js +115 -69
- package/dist/better-auth/adapter/transform/index.d.ts +22 -10
- package/dist/better-auth/adapter/transform/index.d.ts.map +1 -1
- package/dist/better-auth/adapter/transform/index.js +387 -96
- package/dist/better-auth/adapter/types.d.ts +2 -1
- package/dist/better-auth/adapter/types.d.ts.map +1 -1
- package/dist/better-auth/adapter/types.js +1 -1
- package/dist/better-auth/plugin/helpers/check-passkey-plugin.d.ts +3 -0
- package/dist/better-auth/plugin/helpers/check-passkey-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/helpers/check-passkey-plugin.js +5 -0
- package/dist/better-auth/plugin/helpers/check-username-plugin.d.ts +3 -0
- package/dist/better-auth/plugin/helpers/check-username-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/helpers/check-username-plugin.js +5 -0
- package/dist/better-auth/plugin/helpers/generate-verify-email-url.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/generate-verify-email-url.js +8 -8
- package/dist/better-auth/plugin/helpers/get-admin-access.d.ts +8 -0
- package/dist/better-auth/plugin/helpers/get-admin-access.d.ts.map +1 -0
- package/dist/better-auth/plugin/helpers/get-admin-access.js +22 -0
- package/dist/better-auth/plugin/helpers/get-admin-routes.d.ts +14 -0
- package/dist/better-auth/plugin/helpers/get-admin-routes.d.ts.map +1 -0
- package/dist/better-auth/plugin/helpers/get-admin-routes.js +6 -0
- package/dist/better-auth/plugin/helpers/get-all-roles.d.ts +6 -0
- package/dist/better-auth/plugin/helpers/get-all-roles.d.ts.map +1 -0
- package/dist/better-auth/plugin/helpers/get-all-roles.js +20 -0
- package/dist/better-auth/plugin/helpers/get-ip.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/get-ip.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/get-ip.js +14 -14
- package/dist/better-auth/plugin/helpers/get-requst-collection.d.ts +3 -0
- package/dist/better-auth/plugin/helpers/get-requst-collection.d.ts.map +1 -0
- package/dist/better-auth/plugin/helpers/get-requst-collection.js +14 -0
- package/dist/better-auth/plugin/helpers/index.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/index.js +2 -2
- package/dist/better-auth/plugin/{lib → helpers}/prepare-session-data.d.ts +3 -3
- package/dist/better-auth/plugin/helpers/prepare-session-data.d.ts.map +1 -0
- package/dist/better-auth/plugin/helpers/prepare-session-data.js +42 -0
- package/dist/better-auth/plugin/helpers/serialize-cookie.d.ts +4 -4
- package/dist/better-auth/plugin/helpers/serialize-cookie.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/serialize-cookie.js +34 -34
- package/dist/better-auth/plugin/index.d.ts +7 -7
- package/dist/better-auth/plugin/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/index.js +145 -37
- package/dist/better-auth/plugin/{collections → lib/build-collections}/accounts/hooks/sync-password-to-user.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.js +47 -0
- package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts +7 -0
- package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/accounts/index.js +159 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.js +11 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts +3 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.js +8 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts +7 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.js +107 -0
- package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/api-keys.js +196 -0
- package/dist/better-auth/plugin/lib/build-collections/index.d.ts +12 -0
- package/dist/better-auth/plugin/lib/build-collections/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/index.js +96 -0
- package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/invitations.js +91 -0
- package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/jwks.js +43 -0
- package/dist/better-auth/plugin/lib/build-collections/members.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/members.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/members.js +71 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.js +98 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-applications.js +113 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/oauth-consents.js +67 -0
- package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/organizations.js +59 -0
- package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/passkeys.js +108 -0
- package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts +8 -0
- package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/sessions.js +123 -0
- package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/sso-providers.js +83 -0
- package/dist/better-auth/plugin/lib/build-collections/teams.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/teams.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/teams.js +45 -0
- package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts +6 -0
- package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/two-factors.js +56 -0
- package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts +8 -0
- package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.js +52 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.d.ts +3 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.js +96 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts +13 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.js +67 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.d.ts +4 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.js +115 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts +3 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.js +110 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.d.ts +3 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.js +62 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts +3 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.js +42 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts +4 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.js +79 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.d.ts +4 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.js +153 -0
- package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/after-login.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.js +75 -0
- package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/after-logout.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.js +74 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts +7 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.js +45 -0
- package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/before-login.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.js +18 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts +3 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.js +14 -0
- package/dist/better-auth/plugin/{collections → lib/build-collections}/users/hooks/sync-account.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.js +82 -0
- package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts +8 -0
- package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/users/index.js +345 -0
- package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts +8 -0
- package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.js +31 -0
- package/dist/better-auth/plugin/lib/{payload-access.d.ts → build-collections/utils/payload-access.d.ts} +1 -1
- package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.js +64 -0
- package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts +7 -0
- package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/build-collections/verifications.js +63 -0
- package/dist/better-auth/plugin/lib/{config.d.ts → constants.d.ts} +13 -1
- package/dist/better-auth/plugin/lib/constants.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/constants.js +56 -0
- package/dist/better-auth/plugin/lib/get-payload-auth.d.ts +2 -2
- package/dist/better-auth/plugin/lib/get-payload-auth.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/get-payload-auth.js +2 -2
- package/dist/better-auth/plugin/lib/get-required-collection-slugs.d.ts +4 -4
- package/dist/better-auth/plugin/lib/get-required-collection-slugs.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/get-required-collection-slugs.js +26 -43
- package/dist/better-auth/plugin/lib/init-better-auth.d.ts +4 -3
- package/dist/better-auth/plugin/lib/init-better-auth.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/init-better-auth.js +7 -7
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts +3 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.js +8 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.d.ts +2 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.js +17 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts +10 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.js +118 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.d.ts +2 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.js +58 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.d.ts +2 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.js +86 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.d.ts +2 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.js +17 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.d.ts +2 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.js +17 -0
- 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
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.js +23 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.js +62 -0
- 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
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/save-to-jwt-middleware.d.ts.map +1 -0
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/save-to-jwt-middleware.js +30 -0
- package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts +8 -0
- package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/admin-buttons/index.js +115 -0
- package/dist/better-auth/plugin/payload/components/admin-buttons/index.scss +31 -0
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts +11 -0
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.js +196 -0
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.scss +131 -0
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.d.ts +14 -0
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.js +111 -0
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.scss +51 -0
- package/dist/better-auth/plugin/payload/components/form-header/index.d.ts +9 -0
- package/dist/better-auth/plugin/payload/components/form-header/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/form-header/index.js +23 -0
- package/dist/better-auth/plugin/payload/components/form-header/index.scss +8 -0
- package/dist/better-auth/plugin/payload/components/icons.d.ts +9 -0
- package/dist/better-auth/plugin/payload/components/icons.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/icons.js +437 -0
- package/dist/better-auth/plugin/payload/components/logo.d.ts +3 -2
- package/dist/better-auth/plugin/payload/components/logo.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/components/logo.js +22 -34
- package/dist/better-auth/plugin/payload/components/logout-button.d.ts +6 -0
- package/dist/better-auth/plugin/payload/components/logout-button.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/logout-button.js +27 -0
- package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts +7 -0
- package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/rsc-redirect.js +8 -0
- package/dist/better-auth/plugin/payload/components/styles.css +2 -2
- package/dist/better-auth/plugin/payload/components/token-field.d.ts +5 -0
- package/dist/better-auth/plugin/payload/components/token-field.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/components/token-field.js +30 -0
- package/dist/better-auth/plugin/payload/exports/client.d.ts +6 -3
- package/dist/better-auth/plugin/payload/exports/client.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/exports/client.js +7 -4
- package/dist/better-auth/plugin/payload/exports/rsc.d.ts +9 -5
- package/dist/better-auth/plugin/payload/exports/rsc.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/exports/rsc.js +10 -6
- package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts +3 -0
- package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.js +8 -0
- package/dist/better-auth/plugin/payload/utils/generate-metadata.d.ts +15 -0
- package/dist/better-auth/plugin/payload/utils/generate-metadata.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/utils/generate-metadata.js +74 -0
- package/dist/better-auth/plugin/payload/utils/get-safe-redirect.d.ts +2 -0
- package/dist/better-auth/plugin/payload/utils/get-safe-redirect.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/utils/get-safe-redirect.js +23 -0
- package/dist/better-auth/plugin/payload/views/admin-invite/client.d.ts +12 -0
- package/dist/better-auth/plugin/payload/views/admin-invite/client.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/admin-invite/client.js +92 -0
- package/dist/better-auth/plugin/payload/views/admin-invite/index.d.ts +11 -0
- package/dist/better-auth/plugin/payload/views/admin-invite/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/admin-invite/index.js +84 -0
- package/dist/better-auth/plugin/payload/views/admin-invite/index.scss +25 -0
- package/dist/better-auth/plugin/payload/views/create-first-admin/client.d.ts +14 -0
- package/dist/better-auth/plugin/payload/views/create-first-admin/client.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/create-first-admin/client.js +95 -0
- package/dist/better-auth/plugin/payload/views/create-first-admin/index.d.ts +10 -4
- package/dist/better-auth/plugin/payload/views/create-first-admin/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/views/create-first-admin/index.js +124 -92
- package/dist/better-auth/plugin/payload/views/create-first-admin/index.scss +29 -0
- package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts +8 -0
- package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/forgot-password/client.js +119 -0
- package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts +9 -0
- package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/forgot-password/index.js +69 -0
- package/dist/better-auth/plugin/payload/views/forgot-password/index.scss +0 -0
- package/dist/better-auth/plugin/payload/views/inactivity/index.d.ts +5 -0
- package/dist/better-auth/plugin/payload/views/inactivity/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/inactivity/index.js +12 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.d.ts +9 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.js +54 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.d.ts +1 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.js +121 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.scss +31 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.d.ts +56 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.js +3 -0
- package/dist/better-auth/plugin/payload/views/login/form/index.d.ts +17 -0
- package/dist/better-auth/plugin/payload/views/login/form/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/login/form/index.js +137 -0
- package/dist/better-auth/plugin/payload/views/login/form/index.scss +23 -0
- package/dist/better-auth/plugin/payload/views/login/index.d.ts +10 -5
- package/dist/better-auth/plugin/payload/views/login/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/views/login/index.js +81 -61
- package/dist/better-auth/plugin/payload/views/login/index.scss +10 -0
- package/dist/better-auth/plugin/payload/views/logout/client.d.ts +8 -0
- package/dist/better-auth/plugin/payload/views/logout/client.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/logout/client.js +76 -0
- package/dist/better-auth/plugin/payload/views/logout/index.d.ts +8 -0
- package/dist/better-auth/plugin/payload/views/logout/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/logout/index.js +14 -0
- package/dist/better-auth/plugin/payload/views/logout/index.scss +0 -0
- package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts +7 -0
- package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/reset-password/client.js +72 -0
- package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts +5 -0
- package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/reset-password/index.js +81 -0
- package/dist/better-auth/plugin/payload/views/reset-password/index.scss +9 -0
- package/dist/better-auth/plugin/payload/views/reset-password/metadata.d.ts +3 -0
- package/dist/better-auth/plugin/payload/views/reset-password/metadata.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/reset-password/metadata.js +11 -0
- package/dist/better-auth/plugin/types.d.ts +170 -33
- package/dist/better-auth/plugin/types.d.ts.map +1 -1
- package/dist/better-auth/plugin/types.js +1 -1
- package/dist/clerk/plugin/components/sync-clerk-users-button.d.ts +1 -1
- package/dist/clerk/plugin/components/sync-clerk-users-button.d.ts.map +1 -1
- package/dist/clerk/utils/clerk-user.d.ts +0 -3
- package/dist/clerk/utils/clerk-user.d.ts.map +1 -1
- package/dist/clerk/utils/clerk-user.js +1 -3
- package/dist/clerk/utils/load-clerk-instance.d.ts +1 -1
- package/dist/clerk/utils/load-clerk-instance.d.ts.map +1 -1
- package/package.json +13 -13
- package/LICENSE.md +0 -17
- package/dist/better-auth/adapter/dev/bin/run.d.ts +0 -2
- package/dist/better-auth/adapter/dev/bin/run.d.ts.map +0 -1
- package/dist/better-auth/adapter/dev/bin/run.js +0 -64
- package/dist/better-auth/adapter/dev/bin/schema.d.ts +0 -23
- package/dist/better-auth/adapter/dev/bin/schema.d.ts.map +0 -1
- package/dist/better-auth/adapter/dev/bin/schema.js +0 -160
- package/dist/better-auth/adapter/dev/collections.d.ts +0 -4
- package/dist/better-auth/adapter/dev/collections.d.ts.map +0 -1
- package/dist/better-auth/adapter/dev/collections.js +0 -212
- package/dist/better-auth/adapter/dev/index.d.ts +0 -4
- package/dist/better-auth/adapter/dev/index.d.ts.map +0 -1
- package/dist/better-auth/adapter/dev/index.js +0 -168
- package/dist/better-auth/adapter/test/adapter.test.d.ts +0 -2
- package/dist/better-auth/adapter/test/adapter.test.d.ts.map +0 -1
- package/dist/better-auth/adapter/test/adapter.test.js +0 -181
- package/dist/better-auth/adapter/test/better-auth-adapter-test.d.ts +0 -8
- package/dist/better-auth/adapter/test/better-auth-adapter-test.d.ts.map +0 -1
- package/dist/better-auth/adapter/test/better-auth-adapter-test.js +0 -425
- package/dist/better-auth/adapter/test/schema.test.d.ts +0 -2
- package/dist/better-auth/adapter/test/schema.test.d.ts.map +0 -1
- package/dist/better-auth/adapter/test/schema.test.js +0 -796
- package/dist/better-auth/adapter/test/test_payload1/schema.d.ts +0 -24
- package/dist/better-auth/adapter/test/test_payload1/schema.d.ts.map +0 -1
- package/dist/better-auth/adapter/test/test_payload1/schema.js +0 -177
- package/dist/better-auth/adapter/test/test_payload2/schema.d.ts +0 -24
- package/dist/better-auth/adapter/test/test_payload2/schema.d.ts.map +0 -1
- package/dist/better-auth/adapter/test/test_payload2/schema.js +0 -167
- package/dist/better-auth/adapter/test/test_payload3/schema.d.ts +0 -24
- package/dist/better-auth/adapter/test/test_payload3/schema.d.ts.map +0 -1
- package/dist/better-auth/adapter/test/test_payload3/schema.js +0 -198
- package/dist/better-auth/plugin/collections/accounts/hooks/sync-password-to-user.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/accounts/hooks/sync-password-to-user.js +0 -47
- package/dist/better-auth/plugin/collections/users/endpoints/refresh-token.d.ts +0 -7
- package/dist/better-auth/plugin/collections/users/endpoints/refresh-token.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/users/endpoints/refresh-token.js +0 -106
- package/dist/better-auth/plugin/collections/users/hooks/after-login.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/users/hooks/after-login.js +0 -71
- package/dist/better-auth/plugin/collections/users/hooks/after-logout.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/users/hooks/after-logout.js +0 -49
- package/dist/better-auth/plugin/collections/users/hooks/before-login.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/users/hooks/before-login.js +0 -18
- package/dist/better-auth/plugin/collections/users/hooks/clean-up-user-after-delete.d.ts +0 -6
- package/dist/better-auth/plugin/collections/users/hooks/clean-up-user-after-delete.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/users/hooks/clean-up-user-after-delete.js +0 -33
- package/dist/better-auth/plugin/collections/users/hooks/on-verified-change.d.ts +0 -3
- package/dist/better-auth/plugin/collections/users/hooks/on-verified-change.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/users/hooks/on-verified-change.js +0 -14
- package/dist/better-auth/plugin/collections/users/hooks/sync-account.d.ts.map +0 -1
- package/dist/better-auth/plugin/collections/users/hooks/sync-account.js +0 -82
- package/dist/better-auth/plugin/lib/auth-strategy.d.ts +0 -9
- package/dist/better-auth/plugin/lib/auth-strategy.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/auth-strategy.js +0 -48
- package/dist/better-auth/plugin/lib/build-collection-configs.d.ts +0 -12
- package/dist/better-auth/plugin/lib/build-collection-configs.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/build-collection-configs.js +0 -1558
- package/dist/better-auth/plugin/lib/config.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/config.js +0 -44
- package/dist/better-auth/plugin/lib/ensure-password-set-before-create.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/ensure-password-set-before-create.js +0 -24
- package/dist/better-auth/plugin/lib/password.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/password.js +0 -63
- package/dist/better-auth/plugin/lib/payload-access.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/payload-access.js +0 -64
- package/dist/better-auth/plugin/lib/prepare-session-data.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/prepare-session-data.js +0 -42
- package/dist/better-auth/plugin/lib/respect-save-to-jwt-fields-middleware.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/respect-save-to-jwt-fields-middleware.js +0 -30
- package/dist/better-auth/plugin/lib/sanitize-auth-options.d.ts +0 -6
- package/dist/better-auth/plugin/lib/sanitize-auth-options.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/sanitize-auth-options.js +0 -298
- package/dist/better-auth/plugin/payload/components/admin-buttons.d.ts +0 -7
- package/dist/better-auth/plugin/payload/components/admin-buttons.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/admin-buttons.js +0 -219
- package/dist/better-auth/plugin/payload/components/login-redirect.d.ts +0 -2
- package/dist/better-auth/plugin/payload/components/login-redirect.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/login-redirect.js +0 -6
- package/dist/better-auth/plugin/payload/components/logout.d.ts +0 -3
- package/dist/better-auth/plugin/payload/components/logout.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/logout.js +0 -61
- package/dist/better-auth/plugin/payload/components/sign-in.d.ts +0 -4
- package/dist/better-auth/plugin/payload/components/sign-in.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/sign-in.js +0 -384
- package/dist/better-auth/plugin/payload/components/sign-up.d.ts +0 -7
- package/dist/better-auth/plugin/payload/components/sign-up.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/sign-up.js +0 -503
- package/dist/better-auth/plugin/payload/components/ui/button.d.ts +0 -11
- package/dist/better-auth/plugin/payload/components/ui/button.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/ui/button.js +0 -42
- package/dist/better-auth/plugin/payload/components/ui/card.d.ts +0 -10
- package/dist/better-auth/plugin/payload/components/ui/card.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/ui/card.js +0 -55
- package/dist/better-auth/plugin/payload/components/ui/checkbox.d.ts +0 -5
- package/dist/better-auth/plugin/payload/components/ui/checkbox.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/ui/checkbox.js +0 -23
- package/dist/better-auth/plugin/payload/components/ui/cn.d.ts +0 -3
- package/dist/better-auth/plugin/payload/components/ui/cn.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/ui/cn.js +0 -7
- package/dist/better-auth/plugin/payload/components/ui/input.d.ts +0 -4
- package/dist/better-auth/plugin/payload/components/ui/input.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/ui/input.js +0 -14
- package/dist/better-auth/plugin/payload/components/ui/label.d.ts +0 -5
- package/dist/better-auth/plugin/payload/components/ui/label.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/ui/label.js +0 -15
- package/dist/better-auth/plugin/payload/components/ui/password-input.d.ts +0 -3
- package/dist/better-auth/plugin/payload/components/ui/password-input.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/ui/password-input.js +0 -55
- /package/dist/better-auth/plugin/lib/{password.d.ts → sanitize-better-auth-options/utils/password.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clerk-user.d.ts","sourceRoot":"","sources":["../../../src/clerk/utils/clerk-user.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"clerk-user.d.ts","sourceRoot":"","sources":["../../../src/clerk/utils/clerk-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEpD;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,6BAWjC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,oCAAoC,GAC/C,iBAAiB,6BAA6B,KAC7C,6BAUF,CAAA;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,SAAS,CAMnE;AAED,wBAAgB,uBAAuB,CAAC,SAAS,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAM/E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAGxF"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Helper functions for processing Clerk user data
|
|
3
|
-
*/ /**
|
|
4
2
|
* Default mapping function for Clerk user data to Payload fields
|
|
5
3
|
*/ export const defaultClerkMapping = (clerkUser)=>{
|
|
6
4
|
return {
|
|
@@ -44,4 +42,4 @@ export function getPrimaryEmailFromJson(clerkUser) {
|
|
|
44
42
|
return `${firstName || ''} ${lastName || ''}`.trim();
|
|
45
43
|
}
|
|
46
44
|
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jbGVyay91dGlscy9jbGVyay11c2VyLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENsZXJrVG9QYXlsb2FkTWFwcGlu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BRUMsR0FDRCxPQUFPLFNBQVNzQixnQkFBZ0J0QixTQUFlO0lBQzdDLE1BQU11QixlQUFldkIsVUFBVXdCLGNBQWMsRUFBRUMsS0FDN0MsQ0FBQ3RCLFFBQVVBLE1BQU1ELEVBQUUsS0FBS0YsVUFBVTBCLHFCQUFxQjtJQUd6RCxPQUFPSCxjQUFjSSxnQkFBZ0IzQixVQUFVd0IsY0FBYyxFQUFFLENBQUMsRUFBRSxFQUFFRztBQUN0RTtBQUVBLE9BQU8sU0FBU3ZCLHdCQUF3QkosU0FBbUI7SUFDekQsTUFBTXVCLGVBQWV2QixVQUFVTSxlQUFlLEVBQUVtQixLQUM5QyxDQUFDdEIsUUFBVUEsTUFBTUQsRUFBRSxLQUFLRixVQUFVNEIsd0JBQXdCO0lBRzVELE9BQU9MLGNBQWNNLGlCQUFpQjdCLFVBQVVNLGVBQWUsRUFBRSxDQUFDLEVBQUUsRUFBRXVCO0FBQ3hFO0FBRUE7O0NBRUMsR0FDRCxPQUFPLFNBQVNDLGVBQWVyQixTQUFrQixFQUFFRSxRQUFpQjtJQUNsRSxJQUFJLENBQUNGLGFBQWEsQ0FBQ0UsVUFBVSxPQUFPb0I7SUFDcEMsT0FBTyxHQUFHdEIsYUFBYSxHQUFHLENBQUMsRUFBRUUsWUFBWSxJQUFJLENBQUNxQixJQUFJO0FBQ3BEIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-clerk-instance.d.ts","sourceRoot":"","sources":["../../../src/clerk/utils/load-clerk-instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,aAAa,CAAC,EAAE,KAAK,CAAC;KACvB;CACF;AAED,wBAAsB,iBAAiB
|
|
1
|
+
{"version":3,"file":"load-clerk-instance.d.ts","sourceRoot":"","sources":["../../../src/clerk/utils/load-clerk-instance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,aAAa,CAAC,EAAE,KAAK,CAAC;KACvB;CACF;AAED,wBAAsB,iBAAiB,+BAQtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload-auth",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -67,9 +67,17 @@
|
|
|
67
67
|
"files": [
|
|
68
68
|
"dist"
|
|
69
69
|
],
|
|
70
|
+
"scripts": {
|
|
71
|
+
"clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo",
|
|
72
|
+
"build": "pnpm clean && pnpm copyfiles && pnpm build:types && pnpm build:swc",
|
|
73
|
+
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist",
|
|
74
|
+
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
75
|
+
"build:types": "tsc --project tsconfig.json"
|
|
76
|
+
},
|
|
70
77
|
"peerDependencies": {
|
|
71
|
-
"
|
|
72
|
-
"
|
|
78
|
+
"@payloadcms/ui": "^3.34.0",
|
|
79
|
+
"payload": "^3.34.0",
|
|
80
|
+
"next": "^15.3.0",
|
|
73
81
|
"react": "^19",
|
|
74
82
|
"react-dom": "^19"
|
|
75
83
|
},
|
|
@@ -85,7 +93,6 @@
|
|
|
85
93
|
"vitest": "^1.0.0"
|
|
86
94
|
},
|
|
87
95
|
"dependencies": {
|
|
88
|
-
"@payloadcms/ui": "^3.32",
|
|
89
96
|
"@better-auth/utils": "0.2.4",
|
|
90
97
|
"@clerk/backend": "^1.25.8",
|
|
91
98
|
"@clerk/clerk-js": "^5.58.1",
|
|
@@ -94,7 +101,7 @@
|
|
|
94
101
|
"@radix-ui/react-icons": "1.3.2",
|
|
95
102
|
"@radix-ui/react-label": "2.1.2",
|
|
96
103
|
"@radix-ui/react-slot": "1.1.2",
|
|
97
|
-
"better-auth": "1.2.
|
|
104
|
+
"better-auth": "1.2.6",
|
|
98
105
|
"class-variance-authority": "0.7.1",
|
|
99
106
|
"clsx": "2.1.1",
|
|
100
107
|
"jose": "^6.0.10",
|
|
@@ -103,12 +110,5 @@
|
|
|
103
110
|
"svix": "^1.62.0",
|
|
104
111
|
"tailwind-merge": "3.0.2",
|
|
105
112
|
"uncrypto": "^0.1.3"
|
|
106
|
-
},
|
|
107
|
-
"scripts": {
|
|
108
|
-
"clean": "rm -rf ./dist && rm -rf ./tsconfig.tsbuildinfo",
|
|
109
|
-
"build": "pnpm clean && pnpm copyfiles && pnpm build:types && pnpm build:swc",
|
|
110
|
-
"copyfiles": "copyfiles -u 1 \"src/**/*.{html,css,scss,ttf,woff,woff2,eot,svg,jpg,png,json}\" dist",
|
|
111
|
-
"build:swc": "swc ./src -d ./dist --config-file .swcrc --strip-leading-paths",
|
|
112
|
-
"build:types": "tsc --project tsconfig.json"
|
|
113
113
|
}
|
|
114
|
-
}
|
|
114
|
+
}
|
package/LICENSE.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
The MIT License (MIT)
|
|
2
|
-
Copyright (c) 2025 - present, Luke Gannon <luke.gannon@me.com>
|
|
3
|
-
|
|
4
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
|
|
5
|
-
and associated documentation files (the "Software"), to deal in the Software without restriction,
|
|
6
|
-
including without limitation the rights to use, copy, modify, merge, publish, distribute,
|
|
7
|
-
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software
|
|
8
|
-
is furnished to do so, subject to the following conditions:
|
|
9
|
-
|
|
10
|
-
The above copyright notice and this permission notice shall be included in all copies or
|
|
11
|
-
substantial portions of the Software.
|
|
12
|
-
|
|
13
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
|
|
14
|
-
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
15
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
16
|
-
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
17
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/dev/bin/run.ts"],"names":[],"mappings":""}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { betterAuth } from 'better-auth';
|
|
2
|
-
import { payloadAdapter } from '../..';
|
|
3
|
-
import { getPayload } from '..';
|
|
4
|
-
import { generateSchema } from '../../generate-schema';
|
|
5
|
-
import { getPayloadPath } from '../../generate-schema/utils';
|
|
6
|
-
const PAYLOAD_TEST_DIR_PATH = getPayloadPath('./test/test_payload1');
|
|
7
|
-
const PAYLOAD_TEST_DIR_PATH2 = getPayloadPath('./test/test_payload2');
|
|
8
|
-
const PAYLOAD_TEST_DIR_PATH3 = getPayloadPath('./test/test_payload3');
|
|
9
|
-
const auth = betterAuth({
|
|
10
|
-
database: payloadAdapter(await getPayload()),
|
|
11
|
-
emailAndPassword: {
|
|
12
|
-
enabled: true
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
await generateSchema({
|
|
16
|
-
plugins: [
|
|
17
|
-
{
|
|
18
|
-
id: 'admin',
|
|
19
|
-
schema: {
|
|
20
|
-
admin: {
|
|
21
|
-
fields: {
|
|
22
|
-
name: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
required: true
|
|
25
|
-
},
|
|
26
|
-
id: {
|
|
27
|
-
type: 'string',
|
|
28
|
-
required: true
|
|
29
|
-
},
|
|
30
|
-
isAdmin: {
|
|
31
|
-
type: 'boolean',
|
|
32
|
-
required: true
|
|
33
|
-
},
|
|
34
|
-
status: {
|
|
35
|
-
type: 'string',
|
|
36
|
-
required: false
|
|
37
|
-
},
|
|
38
|
-
date: {
|
|
39
|
-
type: 'date'
|
|
40
|
-
},
|
|
41
|
-
number: {
|
|
42
|
-
type: 'number'
|
|
43
|
-
},
|
|
44
|
-
str_array: {
|
|
45
|
-
type: 'string[]'
|
|
46
|
-
},
|
|
47
|
-
num_array: {
|
|
48
|
-
type: 'number[]'
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
]
|
|
55
|
-
}, {
|
|
56
|
-
outputDir: PAYLOAD_TEST_DIR_PATH3
|
|
57
|
-
}).then(()=>{
|
|
58
|
-
process.exit(0);
|
|
59
|
-
}).catch((err)=>{
|
|
60
|
-
console.error(err);
|
|
61
|
-
process.exit(1);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL2Rldi9iaW4vcnVuLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGJldHRlckF1dGggfSBmcm9tICdiZXR0ZXItYXV0aCdcbmltcG9ydCB7IHBheWxvYWRBZGFwdGVyIH0gZnJvbSAnLi4vLi4nXG5pbXBvcnQgeyBnZXRQYXlsb2FkIH0gZnJvbSAnLi4nXG5pbXBvcnQgeyBnZW5lcmF0ZVNjaGVtYSB9IGZyb20gJy4uLy4uL2dlbmVyYXRlLXNjaGVtYSdcbmltcG9ydCB7IGdldFBheWxvYWRQY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gICAgICB9LFxuICAgICAgICAgICAgICBzdGF0dXM6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nJyxcbiAgICAgICAgICAgICAgICByZXF1aXJlZDogZmFsc2UsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIGRhdGU6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnZGF0ZScsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIG51bWJlcjoge1xuICAgICAgICAgICAgICAgIHR5cGU6ICdudW1iZXInLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBzdHJfYXJyYXk6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnc3RyaW5nW10nLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgICBudW1fYXJyYXk6IHtcbiAgICAgICAgICAgICAgICB0eXBlOiAnbnVtYmVyW10nLFxuICAgICAgICAgICAgICB9LFxuICAgICAgICAgICAgfSxcbiAgICAgICAgICB9LFxuICAgICAgICB9LFxuICAgICAgfSxcbiAgICBdLFxuICB9LFxuICB7XG4gICAgb3V0cHV0RGlyOiBQQVlMT0FEX1RFU1RfRElSX1BBVEgzLFxuICB9LFxuKVxuICAudGhlbigoKSA9PiB7XG4gICAgcHJvY2Vzcy5leGl0KDApXG4gIH0pXG4gIC5jYXRjaCgoZXJyKSA9PiB7XG4gICAgY29uc29sZS5lcnJvcihlcnIpXG4gICAgcHJvY2Vzcy5leGl0KDEpXG4gIH0pXG4iXSwibmFtZXMiOlsiYmV0dGVyQXV0aCIsInBheWxvYWRBZGFwdGVyIiwiZ2V0UGF5bG9hZCIsImdlbmVyYXRlU2NoZW1hIiwiZ2V0UGF5bG9hZFBhdGgiLCJQQVlMT0FEX1RFU1RfRElSX1BBVEgiLCJQQVlMT0FEX1RFU1RfRElSX1BBVEgyIiwiUEFZTE9BRF9URVNUX0RJUl9QQVRIMyIsImF1dGgiLCJkYXRhYmFzZSIsImVtYWlsQW5kUGFzc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NEJBQ0pKLE1BQU07d0JBQ1I7d0JBQ0FLLFFBQVE7NEJBQ05MLE1BQU07d0JBQ1I7d0JBQ0FNLFdBQVc7NEJBQ1ROLE1BQU07d0JBQ1I7d0JBQ0FPLFdBQVc7NEJBQ1RQLE1BQU07d0JBQ1I7b0JBQ0Y7Z0JBQ0Y7WUFDRjtRQUNGO0tBQ0Q7QUFDSCxHQUNBO0lBQ0VRLFdBQVduQjtBQUNiLEdBRUNvQixJQUFJLENBQUM7SUFDSkMsUUFBUUMsSUFBSSxDQUFDO0FBQ2YsR0FDQ0MsS0FBSyxDQUFDLENBQUNDO0lBQ05DLFFBQVFDLEtBQUssQ0FBQ0Y7SUFDZEgsUUFBUUMsSUFBSSxDQUFDO0FBQ2YifQ==
|
|
@@ -1,23 +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
|
-
export { User, Session, Account, Verification };
|
|
23
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/dev/bin/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,gBA8BF,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAiCL,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAoDL,CAAA;AAEV,QAAA,MAAM,YAAY,EAAE,gBAuBV,CAAA;AAEV,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,160 +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
|
-
defaultValue: false
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
name: 'image',
|
|
41
|
-
type: 'upload',
|
|
42
|
-
relationTo: 'media'
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
timestamps: true
|
|
46
|
-
};
|
|
47
|
-
const Session = {
|
|
48
|
-
slug: 'session',
|
|
49
|
-
admin: {
|
|
50
|
-
useAsTitle: 'expiresAt'
|
|
51
|
-
},
|
|
52
|
-
fields: [
|
|
53
|
-
{
|
|
54
|
-
name: 'expiresAt',
|
|
55
|
-
type: 'date',
|
|
56
|
-
required: true
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
name: 'token',
|
|
60
|
-
type: 'text',
|
|
61
|
-
required: true,
|
|
62
|
-
unique: true
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
name: 'ipAddress',
|
|
66
|
-
type: 'text'
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
name: 'userAgent',
|
|
70
|
-
type: 'text'
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
name: 'userId',
|
|
74
|
-
type: 'relationship',
|
|
75
|
-
relationTo: 'user',
|
|
76
|
-
required: true
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
timestamps: true
|
|
80
|
-
};
|
|
81
|
-
const Account = {
|
|
82
|
-
slug: 'account',
|
|
83
|
-
admin: {
|
|
84
|
-
useAsTitle: 'accountId'
|
|
85
|
-
},
|
|
86
|
-
fields: [
|
|
87
|
-
{
|
|
88
|
-
name: 'accountId',
|
|
89
|
-
type: 'text',
|
|
90
|
-
required: true
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
name: 'providerId',
|
|
94
|
-
type: 'text',
|
|
95
|
-
required: true
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
name: 'userId',
|
|
99
|
-
type: 'relationship',
|
|
100
|
-
relationTo: 'user',
|
|
101
|
-
required: true
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
name: 'accessToken',
|
|
105
|
-
type: 'text'
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
name: 'refreshToken',
|
|
109
|
-
type: 'text'
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
name: 'idToken',
|
|
113
|
-
type: 'text'
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
name: 'accessTokenExpiresAt',
|
|
117
|
-
type: 'date'
|
|
118
|
-
},
|
|
119
|
-
{
|
|
120
|
-
name: 'refreshTokenExpiresAt',
|
|
121
|
-
type: 'date'
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
name: 'scope',
|
|
125
|
-
type: 'text'
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
name: 'password',
|
|
129
|
-
type: 'text'
|
|
130
|
-
}
|
|
131
|
-
],
|
|
132
|
-
timestamps: true
|
|
133
|
-
};
|
|
134
|
-
const Verification = {
|
|
135
|
-
slug: 'verification',
|
|
136
|
-
admin: {
|
|
137
|
-
useAsTitle: 'identifier'
|
|
138
|
-
},
|
|
139
|
-
fields: [
|
|
140
|
-
{
|
|
141
|
-
name: 'identifier',
|
|
142
|
-
type: 'text',
|
|
143
|
-
required: true
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
name: 'value',
|
|
147
|
-
type: 'text',
|
|
148
|
-
required: true
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
name: 'expiresAt',
|
|
152
|
-
type: 'date',
|
|
153
|
-
required: true
|
|
154
|
-
}
|
|
155
|
-
],
|
|
156
|
-
timestamps: true
|
|
157
|
-
};
|
|
158
|
-
export { User, Session, Account, Verification };
|
|
159
|
-
|
|
160
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL2Rldi9iaW4vc2NoZW1hLnRzIl0sInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogRVhBTVBMRSBDT0xMRUNUSU9OUyBGT1IgQkVUVEVSIEFVVEhcbiAqXG4gKiBCZWxv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DQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtRQUNBO1lBQ0VELE1BQU07WUFDTkMsTUFBTTtRQUNSO1FBQ0E7WUFDRUQsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtLQUNEO0lBQ0RLLFlBQVk7QUFDZDtBQUVBLE1BQU1HLGVBQWlDO0lBQ3JDYixNQUFNO0lBQ05DLE9BQU87UUFDTEMsWUFBWTtJQUNkO0lBQ0FDLFFBQVE7UUFDTjtZQUNFQyxNQUFNO1lBQ05DLE1BQU07WUFDTkMsVUFBVTtRQUNaO1FBQ0E7WUFDRUYsTUFBTTtZQUNOQyxNQUFNO1lBQ05DLFVBQVU7UUFDWjtRQUNBO1lBQ0VGLE1BQU07WUFDTkMsTUFBTTtZQUNOQyxVQUFVO1FBQ1o7S0FDRDtJQUNESSxZQUFZO0FBQ2Q7QUFFQSxTQUFTWCxJQUFJLEVBQUVZLE9BQU8sRUFBRUMsT0FBTyxFQUFFQyxZQUFZLEdBQUUifQ==
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../../src/better-auth/adapter/dev/collections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAiN/C,QAAA,MAAM,WAAW,oBAAgD,CAAA;AAEjE,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
const User = {
|
|
2
|
-
slug: 'user',
|
|
3
|
-
admin: {
|
|
4
|
-
useAsTitle: 'name'
|
|
5
|
-
},
|
|
6
|
-
fields: [
|
|
7
|
-
{
|
|
8
|
-
name: 'name',
|
|
9
|
-
type: 'text',
|
|
10
|
-
required: true
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
name: 'email',
|
|
14
|
-
type: 'email',
|
|
15
|
-
required: true,
|
|
16
|
-
unique: true
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
name: 'emailVerified',
|
|
20
|
-
type: 'checkbox',
|
|
21
|
-
required: true
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
name: 'image',
|
|
25
|
-
type: 'upload',
|
|
26
|
-
relationTo: 'media'
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
timestamps: true
|
|
30
|
-
};
|
|
31
|
-
const Session = {
|
|
32
|
-
slug: 'session',
|
|
33
|
-
admin: {
|
|
34
|
-
useAsTitle: 'expiresAt'
|
|
35
|
-
},
|
|
36
|
-
fields: [
|
|
37
|
-
{
|
|
38
|
-
name: 'expiresAt',
|
|
39
|
-
type: 'date',
|
|
40
|
-
required: true
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
name: 'token',
|
|
44
|
-
type: 'text',
|
|
45
|
-
required: true,
|
|
46
|
-
unique: true
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: 'ipAddress',
|
|
50
|
-
type: 'text'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
name: 'userAgent',
|
|
54
|
-
type: 'text'
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
name: 'userId',
|
|
58
|
-
type: 'relationship',
|
|
59
|
-
required: true,
|
|
60
|
-
relationTo: 'user'
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
timestamps: true
|
|
64
|
-
};
|
|
65
|
-
const Account = {
|
|
66
|
-
slug: 'account',
|
|
67
|
-
admin: {
|
|
68
|
-
useAsTitle: 'accountId'
|
|
69
|
-
},
|
|
70
|
-
fields: [
|
|
71
|
-
{
|
|
72
|
-
name: 'accountId',
|
|
73
|
-
type: 'number',
|
|
74
|
-
required: true
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
name: 'providerId',
|
|
78
|
-
type: 'text'
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'userId',
|
|
82
|
-
type: 'relationship',
|
|
83
|
-
required: true,
|
|
84
|
-
relationTo: 'user'
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
name: 'accessToken',
|
|
88
|
-
type: 'text'
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'refreshToken',
|
|
92
|
-
type: 'text'
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'idToken',
|
|
96
|
-
type: 'text'
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
name: 'accessTokenExpiresAt',
|
|
100
|
-
type: 'date'
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'refreshTokenExpiresAt',
|
|
104
|
-
type: 'date'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'scope',
|
|
108
|
-
type: 'text'
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'password',
|
|
112
|
-
type: 'text'
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
timestamps: true
|
|
116
|
-
};
|
|
117
|
-
const Verification = {
|
|
118
|
-
slug: 'verification',
|
|
119
|
-
admin: {
|
|
120
|
-
useAsTitle: 'identifier'
|
|
121
|
-
},
|
|
122
|
-
fields: [
|
|
123
|
-
{
|
|
124
|
-
name: 'identifier',
|
|
125
|
-
type: 'text',
|
|
126
|
-
required: true
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
name: 'value',
|
|
130
|
-
type: 'text',
|
|
131
|
-
required: true
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
name: 'expiresAt',
|
|
135
|
-
type: 'date',
|
|
136
|
-
required: true
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
timestamps: true
|
|
140
|
-
};
|
|
141
|
-
const Media = {
|
|
142
|
-
slug: 'media',
|
|
143
|
-
fields: [
|
|
144
|
-
{
|
|
145
|
-
name: 'alt',
|
|
146
|
-
type: 'text'
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
upload: {
|
|
150
|
-
adminThumbnail: 'thumbnail',
|
|
151
|
-
imageSizes: [
|
|
152
|
-
{
|
|
153
|
-
name: 'thumbnail',
|
|
154
|
-
fit: 'cover',
|
|
155
|
-
width: 500,
|
|
156
|
-
formatOptions: {
|
|
157
|
-
format: 'webp',
|
|
158
|
-
options: {
|
|
159
|
-
quality: 100
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
],
|
|
164
|
-
formatOptions: {
|
|
165
|
-
format: 'webp',
|
|
166
|
-
options: {
|
|
167
|
-
quality: 80
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
resizeOptions: {
|
|
171
|
-
width: 2560,
|
|
172
|
-
withoutEnlargement: true
|
|
173
|
-
},
|
|
174
|
-
bulkUpload: true,
|
|
175
|
-
disableLocalStorage: true,
|
|
176
|
-
focalPoint: true,
|
|
177
|
-
crop: true,
|
|
178
|
-
pasteURL: {
|
|
179
|
-
allowList: [
|
|
180
|
-
{
|
|
181
|
-
hostname: 'payloadcms.com',
|
|
182
|
-
pathname: '',
|
|
183
|
-
port: '',
|
|
184
|
-
protocol: 'https',
|
|
185
|
-
search: ''
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
hostname: 'drive.google.com',
|
|
189
|
-
protocol: 'https'
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
hostname: 'www.bonavistaleisurescapes.com',
|
|
193
|
-
protocol: 'https'
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
hostname: 'www.acdcfeeds.com',
|
|
197
|
-
protocol: 'https'
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
};
|
|
203
|
-
const collections = [
|
|
204
|
-
User,
|
|
205
|
-
Session,
|
|
206
|
-
Account,
|
|
207
|
-
Verification,
|
|
208
|
-
Media
|
|
209
|
-
];
|
|
210
|
-
export { collections };
|
|
211
|
-
|
|
212
|
-
//#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