Theo's Typesafe CultTTC
Theo's Typesafe Cult3y ago
49 replies
fotoflo

Inviting a teammate with nextAuth

Hi guys,
in [...nextAuth], the email provider is working nicely:

    EmailProvider({
      sendVerificationRequest(params: SendVerificationRequestParams) {
        const { identifier: email, url, expires } = params;
        const newParams = { ...mailjetParams, email, url };
        newParams.email = params.identifier;
        sendEmailWithMailjet(newParams as SendWithMailjetProps);
      },
    }),


Now i want to add invite team members functionality. How can I trigger this from the server side?
Was this page helpful?