MCPcopy Index your code
hub / github.com/simstudioai/sim / renderOTPEmail

Function renderOTPEmail

apps/sim/components/emails/render.ts:39–50  ·  view source on GitHub ↗
(
  otp: string,
  email: string,
  type:
    | 'sign-in'
    | 'email-verification'
    | 'change-email'
    | 'forget-password' = 'email-verification',
  chatTitle?: string
)

Source from the content-addressed store, hash-verified

37}
38
39export async function renderOTPEmail(
40 otp: string,
41 email: string,
42 type:
43 | 'sign-in'
44 | 'email-verification'
45 | 'change-email'
46 | 'forget-password' = 'email-verification',
47 chatTitle?: string
48): Promise<string> {
49 return await render(OTPVerificationEmail({ otp, email, type, chatTitle }))
50}
51
52export async function renderExistingAccountEmail(username: string): Promise<string> {
53 return await render(ExistingAccountEmail({ username }))

Callers 4

auth.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90

Calls 2

OTPVerificationEmailFunction · 0.90
renderFunction · 0.50

Tested by

no test coverage detected