| 1 | import { createAuthPlugin } from "@better-auth-ui/core"; |
| 2 | import { |
| 3 | organizationPlugin as coreOrganizationPlugin, |
| 4 | type OrganizationLocalization, |
| 5 | type OrganizationPluginOptions, |
| 6 | } from "@better-auth-ui/core/plugins/organization"; |
| 7 | |
| 8 | import { AcceptInvitation } |
| 9 | |
| 10 | export const organizationPlugin = |
| 11 | coreOrganizationPlugin.id, |
| 12 | (options: OrganizationPluginOptions |
| 13 | const core = |
| 14 | |
| 15 | return { |
| 16 | ...core, |
| 17 | localization: core.localization |
| 18 | views: { |
| 19 | auth: { acceptInvitation: AcceptInvitation |
| 20 | }, |
| 21 | }; |
| 22 | }, |
| 23 | ); |