payload-auth 1.0.2 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +14 -14
- 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,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXAMPLE COLLECTIONS FOR BETTER AUTH
|
|
3
|
-
*
|
|
4
|
-
* Below is what your Payload collections should look like.
|
|
5
|
-
* Please copy these to your actual collection configs.
|
|
6
|
-
* Make sure to add an authStrategy for the users collection if there is one.
|
|
7
|
-
*
|
|
8
|
-
* Example auth strategy:
|
|
9
|
-
* auth: {
|
|
10
|
-
* disableLocalStrategy: true,
|
|
11
|
-
* strategies: [
|
|
12
|
-
* betterAuthStrategy(),
|
|
13
|
-
* // Add other strategies as needed
|
|
14
|
-
* ],
|
|
15
|
-
* },
|
|
16
|
-
*/
|
|
17
|
-
import type { CollectionConfig } from 'payload';
|
|
18
|
-
declare const User: CollectionConfig;
|
|
19
|
-
declare const Session: CollectionConfig;
|
|
20
|
-
declare const Account: CollectionConfig;
|
|
21
|
-
declare const Verification: CollectionConfig;
|
|
22
|
-
declare const TestTable: CollectionConfig;
|
|
23
|
-
export { User, Session, Account, Verification, TestTable };
|
|
24
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/test/test_payload1/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,gBA6BF,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAiCL,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAoDL,CAAA;AAEV,QAAA,MAAM,YAAY,EAAE,gBAuBV,CAAA;AAEV,QAAA,MAAM,SAAS,EAAE,gBAiBP,CAAA;AAEV,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,CAAA"}
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXAMPLE COLLECTIONS FOR BETTER AUTH
|
|
3
|
-
*
|
|
4
|
-
* Below is what your Payload collections should look like.
|
|
5
|
-
* Please copy these to your actual collection configs.
|
|
6
|
-
* Make sure to add an authStrategy for the users collection if there is one.
|
|
7
|
-
*
|
|
8
|
-
* Example auth strategy:
|
|
9
|
-
* auth: {
|
|
10
|
-
* disableLocalStrategy: true,
|
|
11
|
-
* strategies: [
|
|
12
|
-
* betterAuthStrategy(),
|
|
13
|
-
* // Add other strategies as needed
|
|
14
|
-
* ],
|
|
15
|
-
* },
|
|
16
|
-
*/ const User = {
|
|
17
|
-
slug: 'user',
|
|
18
|
-
admin: {
|
|
19
|
-
useAsTitle: 'name'
|
|
20
|
-
},
|
|
21
|
-
fields: [
|
|
22
|
-
{
|
|
23
|
-
name: 'name',
|
|
24
|
-
type: 'text',
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'email',
|
|
29
|
-
type: 'email',
|
|
30
|
-
required: true,
|
|
31
|
-
unique: true
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'emailVerified',
|
|
35
|
-
type: 'checkbox',
|
|
36
|
-
required: true
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'image',
|
|
40
|
-
type: 'upload',
|
|
41
|
-
relationTo: 'media'
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
timestamps: true
|
|
45
|
-
};
|
|
46
|
-
const Session = {
|
|
47
|
-
slug: 'session',
|
|
48
|
-
admin: {
|
|
49
|
-
useAsTitle: 'expiresAt'
|
|
50
|
-
},
|
|
51
|
-
fields: [
|
|
52
|
-
{
|
|
53
|
-
name: 'expiresAt',
|
|
54
|
-
type: 'date',
|
|
55
|
-
required: true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'token',
|
|
59
|
-
type: 'text',
|
|
60
|
-
required: true,
|
|
61
|
-
unique: true
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'ipAddress',
|
|
65
|
-
type: 'text'
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'userAgent',
|
|
69
|
-
type: 'text'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: 'userId',
|
|
73
|
-
type: 'relationship',
|
|
74
|
-
required: true,
|
|
75
|
-
relationTo: 'user'
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
timestamps: true
|
|
79
|
-
};
|
|
80
|
-
const Account = {
|
|
81
|
-
slug: 'account',
|
|
82
|
-
admin: {
|
|
83
|
-
useAsTitle: 'accountId'
|
|
84
|
-
},
|
|
85
|
-
fields: [
|
|
86
|
-
{
|
|
87
|
-
name: 'accountId',
|
|
88
|
-
type: 'text',
|
|
89
|
-
required: true
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'providerId',
|
|
93
|
-
type: 'text',
|
|
94
|
-
required: true
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'userId',
|
|
98
|
-
type: 'relationship',
|
|
99
|
-
required: true,
|
|
100
|
-
relationTo: 'user'
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'accessToken',
|
|
104
|
-
type: 'text'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'refreshToken',
|
|
108
|
-
type: 'text'
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'idToken',
|
|
112
|
-
type: 'text'
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'accessTokenExpiresAt',
|
|
116
|
-
type: 'date'
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'refreshTokenExpiresAt',
|
|
120
|
-
type: 'date'
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'scope',
|
|
124
|
-
type: 'text'
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'password',
|
|
128
|
-
type: 'text'
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
timestamps: true
|
|
132
|
-
};
|
|
133
|
-
const Verification = {
|
|
134
|
-
slug: 'verification',
|
|
135
|
-
admin: {
|
|
136
|
-
useAsTitle: 'identifier'
|
|
137
|
-
},
|
|
138
|
-
fields: [
|
|
139
|
-
{
|
|
140
|
-
name: 'identifier',
|
|
141
|
-
type: 'text',
|
|
142
|
-
required: true
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: 'value',
|
|
146
|
-
type: 'text',
|
|
147
|
-
required: true
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'expiresAt',
|
|
151
|
-
type: 'date',
|
|
152
|
-
required: true
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
timestamps: true
|
|
156
|
-
};
|
|
157
|
-
const TestTable = {
|
|
158
|
-
slug: 'testTable',
|
|
159
|
-
admin: {
|
|
160
|
-
useAsTitle: 'hello'
|
|
161
|
-
},
|
|
162
|
-
fields: [
|
|
163
|
-
{
|
|
164
|
-
name: 'hello',
|
|
165
|
-
type: 'checkbox'
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
name: 'hello2',
|
|
169
|
-
type: 'text',
|
|
170
|
-
required: true
|
|
171
|
-
}
|
|
172
|
-
],
|
|
173
|
-
timestamps: true
|
|
174
|
-
};
|
|
175
|
-
export { User, Session, Account, Verification, TestTable };
|
|
176
|
-
|
|
177
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL3Rlc3QvdGVzdF9wYXlsb2FkMS9zY2hlbWEudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFWEFNUExFIENPTExFQ1RJT05TIEZPUiBCRVRURVIgQVVUSFxuICpcbiAqIEJlbG93IGlzIHdoYXQgeW91ciBQYXlsb2FkIGNvbGxlY3Rpb25zIHNob3VsZCBsb29rIGxpa2UuXG4gKiBQbGVhc2UgY29weSB0aGVzZSB0byB5b3VyIGFj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SxFQUFFQyxTQUFTLEdBQUUifQ==
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXAMPLE COLLECTIONS FOR BETTER AUTH
|
|
3
|
-
*
|
|
4
|
-
* Below is what your Payload collections should look like.
|
|
5
|
-
* Please copy these to your actual collection configs.
|
|
6
|
-
* Make sure to add an authStrategy for the users collection if there is one.
|
|
7
|
-
*
|
|
8
|
-
* Example auth strategy:
|
|
9
|
-
* auth: {
|
|
10
|
-
* disableLocalStrategy: true,
|
|
11
|
-
* strategies: [
|
|
12
|
-
* betterAuthStrategy(),
|
|
13
|
-
* // Add other strategies as needed
|
|
14
|
-
* ],
|
|
15
|
-
* },
|
|
16
|
-
*/
|
|
17
|
-
import type { CollectionConfig } from 'payload';
|
|
18
|
-
declare const User: CollectionConfig;
|
|
19
|
-
declare const Session: CollectionConfig;
|
|
20
|
-
declare const Account: CollectionConfig;
|
|
21
|
-
declare const Verification: CollectionConfig;
|
|
22
|
-
declare const Admins: CollectionConfig;
|
|
23
|
-
export { User, Session, Account, Verification, Admins };
|
|
24
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/test/test_payload2/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,gBA6BF,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAiCL,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAoDL,CAAA;AAEV,QAAA,MAAM,YAAY,EAAE,gBAuBV,CAAA;AAEV,QAAA,MAAM,MAAM,EAAE,gBAOJ,CAAA;AAEV,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXAMPLE COLLECTIONS FOR BETTER AUTH
|
|
3
|
-
*
|
|
4
|
-
* Below is what your Payload collections should look like.
|
|
5
|
-
* Please copy these to your actual collection configs.
|
|
6
|
-
* Make sure to add an authStrategy for the users collection if there is one.
|
|
7
|
-
*
|
|
8
|
-
* Example auth strategy:
|
|
9
|
-
* auth: {
|
|
10
|
-
* disableLocalStrategy: true,
|
|
11
|
-
* strategies: [
|
|
12
|
-
* betterAuthStrategy(),
|
|
13
|
-
* // Add other strategies as needed
|
|
14
|
-
* ],
|
|
15
|
-
* },
|
|
16
|
-
*/ const User = {
|
|
17
|
-
slug: 'user',
|
|
18
|
-
admin: {
|
|
19
|
-
useAsTitle: 'name'
|
|
20
|
-
},
|
|
21
|
-
fields: [
|
|
22
|
-
{
|
|
23
|
-
name: 'name',
|
|
24
|
-
type: 'text',
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'email',
|
|
29
|
-
type: 'email',
|
|
30
|
-
required: true,
|
|
31
|
-
unique: true
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'emailVerified',
|
|
35
|
-
type: 'checkbox',
|
|
36
|
-
required: true
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'image',
|
|
40
|
-
type: 'upload',
|
|
41
|
-
relationTo: 'media'
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
timestamps: true
|
|
45
|
-
};
|
|
46
|
-
const Session = {
|
|
47
|
-
slug: 'session',
|
|
48
|
-
admin: {
|
|
49
|
-
useAsTitle: 'expiresAt'
|
|
50
|
-
},
|
|
51
|
-
fields: [
|
|
52
|
-
{
|
|
53
|
-
name: 'expiresAt',
|
|
54
|
-
type: 'date',
|
|
55
|
-
required: true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'token',
|
|
59
|
-
type: 'text',
|
|
60
|
-
required: true,
|
|
61
|
-
unique: true
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'ipAddress',
|
|
65
|
-
type: 'text'
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'userAgent',
|
|
69
|
-
type: 'text'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: 'userId',
|
|
73
|
-
type: 'relationship',
|
|
74
|
-
required: true,
|
|
75
|
-
relationTo: 'user'
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
timestamps: true
|
|
79
|
-
};
|
|
80
|
-
const Account = {
|
|
81
|
-
slug: 'account',
|
|
82
|
-
admin: {
|
|
83
|
-
useAsTitle: 'accountId'
|
|
84
|
-
},
|
|
85
|
-
fields: [
|
|
86
|
-
{
|
|
87
|
-
name: 'accountId',
|
|
88
|
-
type: 'text',
|
|
89
|
-
required: true
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'providerId',
|
|
93
|
-
type: 'text',
|
|
94
|
-
required: true
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'userId',
|
|
98
|
-
type: 'relationship',
|
|
99
|
-
required: true,
|
|
100
|
-
relationTo: 'user'
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'accessToken',
|
|
104
|
-
type: 'text'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'refreshToken',
|
|
108
|
-
type: 'text'
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'idToken',
|
|
112
|
-
type: 'text'
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'accessTokenExpiresAt',
|
|
116
|
-
type: 'date'
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'refreshTokenExpiresAt',
|
|
120
|
-
type: 'date'
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'scope',
|
|
124
|
-
type: 'text'
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'password',
|
|
128
|
-
type: 'text'
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
timestamps: true
|
|
132
|
-
};
|
|
133
|
-
const Verification = {
|
|
134
|
-
slug: 'verification',
|
|
135
|
-
admin: {
|
|
136
|
-
useAsTitle: 'identifier'
|
|
137
|
-
},
|
|
138
|
-
fields: [
|
|
139
|
-
{
|
|
140
|
-
name: 'identifier',
|
|
141
|
-
type: 'text',
|
|
142
|
-
required: true
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: 'value',
|
|
146
|
-
type: 'text',
|
|
147
|
-
required: true
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'expiresAt',
|
|
151
|
-
type: 'date',
|
|
152
|
-
required: true
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
timestamps: true
|
|
156
|
-
};
|
|
157
|
-
const Admins = {
|
|
158
|
-
slug: 'admins',
|
|
159
|
-
admin: {
|
|
160
|
-
useAsTitle: 'id'
|
|
161
|
-
},
|
|
162
|
-
fields: [],
|
|
163
|
-
timestamps: true
|
|
164
|
-
};
|
|
165
|
-
export { User, Session, Account, Verification, Admins };
|
|
166
|
-
|
|
167
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL3Rlc3QvdGVzdF9wYXlsb2FkMi9zY2hlbWEudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFWEFNUExFIENPTExFQ1RJT05TIEZPUiBCRVRURVIgQVVUSFxuICpcbiAqIEJlbG93IGlzIHdoYXQgeW91ciBQYXlsb2FkIGNvbGxlY3Rpb25zIHNob3VsZCBsb29rIGxpa2UuXG4gKiBQbGVhc2UgY29weSB0aGVzZSB0byB5b3VyIGFjdHVhbCBjb2xsZWN0aW9uIGNvbmZpZ3MuXG4gKiBNYWtlIHN1c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VELE1BQU07WUFDTkMsTUFBTTtRQUNSO1FBQ0E7WUFDRUQsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtRQUNBO1lBQ0VELE1BQU07WUFDTkMsTUFBTTtRQUNSO0tBQ0Q7SUFDREksWUFBWTtBQUNkO0FBRUEsTUFBTUcsZUFBaUM7SUFDckNaLE1BQU07SUFDTkMsT0FBTztRQUNMQyxZQUFZO0lBQ2Q7SUFDQUMsUUFBUTtRQUNOO1lBQ0VDLE1BQU07WUFDTkMsTUFBTTtZQUNOQyxVQUFVO1FBQ1o7UUFDQTtZQUNFRixNQUFNO1lBQ05DLE1BQU07WUFDTkMsVUFBVTtRQUNaO1FBQ0E7WUFDRUYsTUFBTTtZQUNOQyxNQUFNO1lBQ05DLFVBQVU7UUFDWjtLQUNEO0lBQ0RHLFlBQVk7QUFDZDtBQUVBLE1BQU1JLFNBQTJCO0lBQy9CYixNQUFNO0lBQ05DLE9BQU87UUFDTEMsWUFBWTtJQUNkO0lBQ0FDLFFBQVEsRUFBRTtJQUNWTSxZQUFZO0FBQ2Q7QUFFQSxTQUFTVixJQUFJLEVBQUVXLE9BQU8sRUFBRUMsT0FBTyxFQUFFQyxZQUFZLEVBQUVDLE1BQU0sR0FBRSJ9
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXAMPLE COLLECTIONS FOR BETTER AUTH
|
|
3
|
-
*
|
|
4
|
-
* Below is what your Payload collections should look like.
|
|
5
|
-
* Please copy these to your actual collection configs.
|
|
6
|
-
* Make sure to add an authStrategy for the users collection if there is one.
|
|
7
|
-
*
|
|
8
|
-
* Example auth strategy:
|
|
9
|
-
* auth: {
|
|
10
|
-
* disableLocalStrategy: true,
|
|
11
|
-
* strategies: [
|
|
12
|
-
* betterAuthStrategy(),
|
|
13
|
-
* // Add other strategies as needed
|
|
14
|
-
* ],
|
|
15
|
-
* },
|
|
16
|
-
*/
|
|
17
|
-
import type { CollectionConfig } from 'payload';
|
|
18
|
-
declare const User: CollectionConfig;
|
|
19
|
-
declare const Session: CollectionConfig;
|
|
20
|
-
declare const Account: CollectionConfig;
|
|
21
|
-
declare const Verification: CollectionConfig;
|
|
22
|
-
declare const Admin: CollectionConfig;
|
|
23
|
-
export { User, Session, Account, Verification, Admin };
|
|
24
|
-
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../../src/better-auth/adapter/test/test_payload3/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C,QAAA,MAAM,IAAI,EAAE,gBA6BF,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAiCL,CAAA;AAEV,QAAA,MAAM,OAAO,EAAE,gBAoDL,CAAA;AAEV,QAAA,MAAM,YAAY,EAAE,gBAuBV,CAAA;AAEV,QAAA,MAAM,KAAK,EAAE,gBAsCH,CAAA;AAEV,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,CAAA"}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EXAMPLE COLLECTIONS FOR BETTER AUTH
|
|
3
|
-
*
|
|
4
|
-
* Below is what your Payload collections should look like.
|
|
5
|
-
* Please copy these to your actual collection configs.
|
|
6
|
-
* Make sure to add an authStrategy for the users collection if there is one.
|
|
7
|
-
*
|
|
8
|
-
* Example auth strategy:
|
|
9
|
-
* auth: {
|
|
10
|
-
* disableLocalStrategy: true,
|
|
11
|
-
* strategies: [
|
|
12
|
-
* betterAuthStrategy(),
|
|
13
|
-
* // Add other strategies as needed
|
|
14
|
-
* ],
|
|
15
|
-
* },
|
|
16
|
-
*/ const User = {
|
|
17
|
-
slug: 'user',
|
|
18
|
-
admin: {
|
|
19
|
-
useAsTitle: 'name'
|
|
20
|
-
},
|
|
21
|
-
fields: [
|
|
22
|
-
{
|
|
23
|
-
name: 'name',
|
|
24
|
-
type: 'text',
|
|
25
|
-
required: true
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: 'email',
|
|
29
|
-
type: 'email',
|
|
30
|
-
required: true,
|
|
31
|
-
unique: true
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
name: 'emailVerified',
|
|
35
|
-
type: 'checkbox',
|
|
36
|
-
required: true
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
name: 'image',
|
|
40
|
-
type: 'upload',
|
|
41
|
-
relationTo: 'media'
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
timestamps: true
|
|
45
|
-
};
|
|
46
|
-
const Session = {
|
|
47
|
-
slug: 'session',
|
|
48
|
-
admin: {
|
|
49
|
-
useAsTitle: 'expiresAt'
|
|
50
|
-
},
|
|
51
|
-
fields: [
|
|
52
|
-
{
|
|
53
|
-
name: 'expiresAt',
|
|
54
|
-
type: 'date',
|
|
55
|
-
required: true
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
name: 'token',
|
|
59
|
-
type: 'text',
|
|
60
|
-
required: true,
|
|
61
|
-
unique: true
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: 'ipAddress',
|
|
65
|
-
type: 'text'
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
name: 'userAgent',
|
|
69
|
-
type: 'text'
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
name: 'userId',
|
|
73
|
-
type: 'relationship',
|
|
74
|
-
required: true,
|
|
75
|
-
relationTo: 'user'
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
timestamps: true
|
|
79
|
-
};
|
|
80
|
-
const Account = {
|
|
81
|
-
slug: 'account',
|
|
82
|
-
admin: {
|
|
83
|
-
useAsTitle: 'accountId'
|
|
84
|
-
},
|
|
85
|
-
fields: [
|
|
86
|
-
{
|
|
87
|
-
name: 'accountId',
|
|
88
|
-
type: 'text',
|
|
89
|
-
required: true
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
name: 'providerId',
|
|
93
|
-
type: 'text',
|
|
94
|
-
required: true
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
name: 'userId',
|
|
98
|
-
type: 'relationship',
|
|
99
|
-
required: true,
|
|
100
|
-
relationTo: 'user'
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'accessToken',
|
|
104
|
-
type: 'text'
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
name: 'refreshToken',
|
|
108
|
-
type: 'text'
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: 'idToken',
|
|
112
|
-
type: 'text'
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
name: 'accessTokenExpiresAt',
|
|
116
|
-
type: 'date'
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
name: 'refreshTokenExpiresAt',
|
|
120
|
-
type: 'date'
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'scope',
|
|
124
|
-
type: 'text'
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'password',
|
|
128
|
-
type: 'text'
|
|
129
|
-
}
|
|
130
|
-
],
|
|
131
|
-
timestamps: true
|
|
132
|
-
};
|
|
133
|
-
const Verification = {
|
|
134
|
-
slug: 'verification',
|
|
135
|
-
admin: {
|
|
136
|
-
useAsTitle: 'identifier'
|
|
137
|
-
},
|
|
138
|
-
fields: [
|
|
139
|
-
{
|
|
140
|
-
name: 'identifier',
|
|
141
|
-
type: 'text',
|
|
142
|
-
required: true
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
name: 'value',
|
|
146
|
-
type: 'text',
|
|
147
|
-
required: true
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
name: 'expiresAt',
|
|
151
|
-
type: 'date',
|
|
152
|
-
required: true
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
timestamps: true
|
|
156
|
-
};
|
|
157
|
-
const Admin = {
|
|
158
|
-
slug: 'admin',
|
|
159
|
-
admin: {
|
|
160
|
-
useAsTitle: 'name'
|
|
161
|
-
},
|
|
162
|
-
fields: [
|
|
163
|
-
{
|
|
164
|
-
name: 'name',
|
|
165
|
-
type: 'text',
|
|
166
|
-
required: true
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
name: 'isAdmin',
|
|
170
|
-
type: 'checkbox',
|
|
171
|
-
required: true
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
name: 'status',
|
|
175
|
-
type: 'text'
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
name: 'date',
|
|
179
|
-
type: 'date'
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
name: 'number',
|
|
183
|
-
type: 'number'
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
name: 'str_array',
|
|
187
|
-
type: 'text'
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
name: 'num_array',
|
|
191
|
-
type: 'text'
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
timestamps: true
|
|
195
|
-
};
|
|
196
|
-
export { User, Session, Account, Verification, Admin };
|
|
197
|
-
|
|
198
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9hZGFwdGVyL3Rlc3QvdGVzdF9wYXlsb2FkMy9zY2hlbWEudHMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBFWEFNUExFIENPTExFQ1RJT05TIEZPUiBCRVRURVIgQVVUSFxuICpcbiAqIEJlbG93IGlzIHdoYXQgeW91ciBQYXlsb2FkIGNvbGxlY3Rpb25zIHNob3VsZCBsb29rIGxpa2UuXG4g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QUFVO1FBQ1o7UUFDQTtZQUNFRixNQUFNO1lBQ05DLE1BQU07WUFDTkMsVUFBVTtRQUNaO0tBQ0Q7SUFDREcsWUFBWTtBQUNkO0FBRUEsTUFBTUksUUFBMEI7SUFDOUJiLE1BQU07SUFDTkMsT0FBTztRQUNMQyxZQUFZO0lBQ2Q7SUFDQUMsUUFBUTtRQUNOO1lBQ0VDLE1BQU07WUFDTkMsTUFBTTtZQUNOQyxVQUFVO1FBQ1o7UUFDQTtZQUNFRixNQUFNO1lBQ05DLE1BQU07WUFDTkMsVUFBVTtRQUNaO1FBQ0E7WUFDRUYsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtRQUNBO1lBQ0VELE1BQU07WUFDTkMsTUFBTTtRQUNSO1FBQ0E7WUFDRUQsTUFBTTtZQUNOQyxNQUFNO1FBQ1I7UUFDQTtZQUNFRCxNQUFNO1lBQ05DLE1BQU07UUFDUjtLQUNEO0lBQ0RJLFlBQVk7QUFDZDtBQUVBLFNBQVNWLElBQUksRUFBRVcsT0FBTyxFQUFFQyxPQUFPLEVBQUVDLFlBQVksRUFBRUMsS0FBSyxHQUFFIn0=
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sync-password-to-user.d.ts","sourceRoot":"","sources":["../../../../../../src/better-auth/plugin/collections/accounts/hooks/sync-password-to-user.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAA;AAMxD,KAAK,yBAAyB,GAAG;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,yBAAyB,GACpC,SAAS,yBAAyB,KACjC,yBA0DF,CAAA"}
|