instead of console log, on the invite or password reset send a proper email for resetting password or accepting invite using resend.
My resend domain: satteen.com
My resend token exists in .env
docs:
Express

Learn how to send your first email using Express and the Resend Node.js SDK.
​
Prerequisites

To get the most out of this guide, you’ll need to:

    Create an API key
    Verify your domain

​
1. Install

Get the Resend Node.js SDK.

npm install resend

​
2. Send email using HTML

The easiest way to send an email is by using the html parameter.
server.ts

import express, { Request, Response } from "express";
import { Resend } from "resend";

const app = express();
const resend = new Resend("re_123456789");

app.get("/", async (req: Request, res: Response) => {
  const { data, error } = await resend.emails.send({
    from: "Acme <<PRESIDIO_ANONYMIZED_EMAIL_ADDRESS>>",
    to: ["delivered@resend.dev"],
    subject: "hello world",
    html: "<strong>it works!</strong>",
  });

  if (error) {
    return res.status(400).json({ error });
  }

  res.status(200).json({ data });
});

app.listen(3000, () => {
  console.log("Listening on http://localhost:3000");
});

my code:
admin-invite.ts:
import {
    SubscriberConfig,
    SubscriberArgs,
} from "@medusajs/medusa"

/**
 * Handler function that processes the password reset event.
 * @param args - The arguments provided by the event bus.
 */
export default async function adminInvite({
                                                       data,
                                                   }: SubscriberArgs<{
    id: string
    token: string
    user_email: string
}>) {
    const { id, user_email, token } = data
    console.log(`Password reset requested for email: ${user_email}`)
    console.log(`Reset token: ${token}`)
}

/**
 * Configuration object for the subscriber.
 */
export const config: SubscriberConfig = {
    event: "invite.created",
    context: {
        subscriberId: "admin-invite", // Unique identifier for the subscriber
    },
}
admin-password-reset-logger.ts:
import {
    SubscriberConfig,
    SubscriberArgs,
} from "@medusajs/medusa"

/**
 * Handler function that processes the password reset event.
 * @param args - The arguments provided by the event bus.
 */
export default async function passwordResetHandler({
                                                       data,
                                                   }: SubscriberArgs<{
    email: string
    token: string
}>) {
    const { email, token } = data
    console.log(`Password reset requested for email: ${email}`)
    console.log(`Reset token: ${token}`)
}

/**
 * Configuration object for the subscriber.
 */
export const config: SubscriberConfig = {
    event: "user.password_reset",
    context: {
        subscriberId: "password-reset-logger", // Unique identifier for the subscriber
    },
}
user-password-reset.ts:
import {
    SubscriberConfig,
    SubscriberArgs,
} from "@medusajs/medusa"

/**
 * Handler function that processes the password reset event.
 * @param args - The arguments provided by the event bus.
 */
export default async function userPasswordReset({
                                                       data,
                                                   }: SubscriberArgs<{
    id: string
    email: string
    first_name: string
    last_name: string
    token: string
}>) {
    const { email, token } = data
    console.log(`Password reset requested for email: ${email}`)
    console.log(`Reset token: ${token}`)
}

/**
 * Configuration object for the subscriber.
 */
export const config: SubscriberConfig = {
    event: "customer.password_reset",
    context: {
        subscriberId: "user-password-reset", // Unique identifier for the subscriber
    },
}