mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
Allow organisations to manage an SSO OIDC compliant portal. This method is intended to streamline the onboarding process and paves the way to allow organisations to manage their members in a more strict way.
23 lines
664 B
TypeScript
23 lines
664 B
TypeScript
import { linkOrganisationAccount } from '@documenso/ee/server-only/lib/link-organisation-account';
|
|
|
|
import { procedure } from '../trpc';
|
|
import {
|
|
ZLinkOrganisationAccountRequestSchema,
|
|
ZLinkOrganisationAccountResponseSchema,
|
|
} from './link-organisation-account.types';
|
|
|
|
/**
|
|
* Unauthenicated procedure, do not copy paste.
|
|
*/
|
|
export const linkOrganisationAccountRoute = procedure
|
|
.input(ZLinkOrganisationAccountRequestSchema)
|
|
.output(ZLinkOrganisationAccountResponseSchema)
|
|
.mutation(async ({ input, ctx }) => {
|
|
const { token } = input;
|
|
|
|
await linkOrganisationAccount({
|
|
token,
|
|
requestMeta: ctx.metadata.requestMetadata,
|
|
});
|
|
});
|