Skip to main content
Glama
OAuthTokenCreatedEmail.tsx10.4 kB
import { Body, Button, Container, Head, Heading, Hr, Html, Img, Link, Preview, Section, Tailwind, Text, } from '@react-email/components'; export type OAuthTokenCreatedEmailProps = { username: string; applicationName: string; scopes: string[]; tokenDetailsUrl: string; securityLogUrl: string; supportUrl: string; }; export const OAuthTokenCreatedEmailEN = ({ username, applicationName, scopes, tokenDetailsUrl, securityLogUrl, supportUrl, }: OAuthTokenCreatedEmailProps) => { const previewText = `A third-party OAuth access key has been added to your Intlayer account`; return ( <Html> <Head /> <Preview>{previewText}</Preview> <Tailwind> <Body className="m-auto px-2 font-sans"> <Container className="mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]"> <Section className="mt-[32px]"> <Img src="https://intlayer.org/apple-touch-icon.png" width="40" height="37" alt="Intlayer" className="mx-auto my-0" /> </Section> <Heading className="mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black"> A third-party OAuth access key has been added to your account </Heading> <Text className="text-[14px] text-black leading-[24px]"> Hey {username}! </Text> <Text className="text-[14px] text-black leading-[24px]"> A third-party OAuth access key (<strong>{applicationName}</strong> ) with the following permissions was recently authorized to access your account: <ul> {scopes.map((scope) => ( <li key={scope}>{scope}</li> ))} </ul> </Text> <Section className="my-[32px] text-center"> <Button className="rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline" href={tokenDetailsUrl} > View Application Details </Button> </Section> <Text className="text-[14px] text-black leading-[24px]"> To see this and other security events for your account, visit{' '} <Link href={securityLogUrl} className="text-[#000000] no-underline" > your security log </Link> . </Text> <Text className="text-[14px] text-black leading-[24px]"> If you run into problems, please contact support by visiting{' '} <Link href={supportUrl} className="text-[#000000] no-underline"> our support page </Link> . </Text> <Hr className="mx-0 my-[26px] w-full border border-[#eaeaea] border-solid" /> <Text className="text-[#666666] text-[12px] leading-[24px]"> This email was intended for{' '} <span className="text-black">{username}</span>. If you were not expecting this email, you can ignore it. If you are concerned about your account's safety, please reply to this email to get in touch with us. </Text> </Container> </Body> </Tailwind> </Html> ); }; export const OAuthTokenCreatedEmailFR = ({ username, applicationName, scopes, tokenDetailsUrl, securityLogUrl, supportUrl, }: OAuthTokenCreatedEmailProps) => { const previewText = `Une application OAuth tierce a été ajoutée à votre compte Intlayer`; return ( <Html> <Head /> <Preview>{previewText}</Preview> <Tailwind> <Body className="m-auto px-2 font-sans"> <Container className="mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]"> <Section className="mt-[32px]"> <Img src="https://intlayer.org/apple-touch-icon.png" width="40" height="37" alt="Intlayer" className="mx-auto my-0" /> </Section> <Heading className="mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black"> Une application OAuth tierce a été ajoutée à votre compte </Heading> <Text className="text-[14px] text-black leading-[24px]"> Salut {username} ! </Text> <Text className="text-[14px] text-black leading-[24px]"> Une application OAuth tierce (<strong>{applicationName}</strong>) avec les permissions {scopes.join(', ')} a récemment été autorisée à accéder à votre compte. </Text> <Section className="my-[32px] text-center"> <Button className="rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline" href={tokenDetailsUrl} > Voir les détails de l'application </Button> </Section> <Text className="text-[14px] text-black leading-[24px]"> Pour voir cet événement et d'autres événements de sécurité pour votre compte, visitez{' '} <Link href={securityLogUrl} className="text-[#000000] no-underline" > votre journal de sécurité </Link> . </Text> <Text className="text-[14px] text-black leading-[24px]"> Si vous rencontrez des problèmes, veuillez contacter le support en visitant{' '} <Link href={supportUrl} className="text-[#000000] no-underline"> notre page de support </Link> . </Text> <Hr className="mx-0 my-[26px] w-full border border-[#eaeaea] border-solid" /> <Text className="text-[#666666] text-[12px] leading-[24px]"> Cet e-mail était destiné à{' '} <span className="text-black">{username}</span>. Si vous n'attendiez pas cet e-mail, vous pouvez l'ignorer. Si vous êtes préoccupé par la sécurité de votre compte, veuillez répondre à cet e-mail pour nous contacter. </Text> </Container> </Body> </Tailwind> </Html> ); }; export const OAuthTokenCreatedEmailES = ({ username, applicationName, scopes, tokenDetailsUrl, securityLogUrl, supportUrl, }: OAuthTokenCreatedEmailProps) => { const previewText = `Se ha añadido una aplicación OAuth de terceros a tu cuenta de Intlayer`; return ( <Html> <Head /> <Preview>{previewText}</Preview> <Tailwind> <Body className="m-auto px-2 font-sans"> <Container className="mx-auto my-[40px] max-w-[465px] rounded-xl border border-[#eaeaea] border-solid bg-white p-[20px]"> <Section className="mt-[32px]"> <Img src="https://intlayer.org/apple-touch-icon.png" width="40" height="37" alt="Intlayer" className="mx-auto my-0" /> </Section> <Heading className="mx-0 my-[30px] p-0 text-center font-normal text-[24px] text-black"> Se ha añadido una aplicación OAuth de terceros a tu cuenta </Heading> <Text className="text-[14px] text-black leading-[24px]"> ¡Hola {username}! </Text> <Text className="text-[14px] text-black leading-[24px]"> Una aplicación OAuth de terceros ( <strong>{applicationName}</strong>) con permisos{' '} {scopes.join(', ')} fue recientemente autorizada para acceder a tu cuenta. </Text> <Section className="my-[32px] text-center"> <Button className="rounded-md bg-[#000000] px-5 py-3 text-center font-semibold text-[12px] text-white no-underline" href={tokenDetailsUrl} > Ver detalles de la aplicación </Button> </Section> <Text className="text-[14px] text-black leading-[24px]"> Para ver este y otros eventos de seguridad para tu cuenta, visita{' '} <Link href={securityLogUrl} className="text-[#000000] no-underline" > tu registro de seguridad </Link> . </Text> <Text className="text-[14px] text-black leading-[24px]"> Si tienes problemas, por favor contacta al soporte visitando{' '} <Link href={supportUrl} className="text-[#000000] no-underline"> nuestra página de soporte </Link> . </Text> <Hr className="mx-0 my-[26px] w-full border border-[#eaeaea] border-solid" /> <Text className="text-[#666666] text-[12px] leading-[24px]"> Este correo fue enviado a{' '} <span className="text-black">{username}</span>. Si no esperabas este correo, puedes ignorarlo. Si estás preocupado por la seguridad de tu cuenta, por favor responde a este correo para contactarte con nosotros. </Text> </Container> </Body> </Tailwind> </Html> ); }; const previewProps: OAuthTokenCreatedEmailProps = { username: 'aymericzip', applicationName: 'Postman', scopes: ['read:user', 'user:email'], tokenDetailsUrl: 'https://intlayer.org/settings/connections/applications/Ov23li230j1cbJfa4SPW', securityLogUrl: 'https://intlayer.org/settings/security-log', supportUrl: 'https://intlayer.org/contact', }; OAuthTokenCreatedEmailEN.PreviewProps = previewProps; OAuthTokenCreatedEmailFR.PreviewProps = previewProps; OAuthTokenCreatedEmailES.PreviewProps = previewProps;

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aymericzip/intlayer'

If you have feedback or need assistance with the MCP directory API, please join our Discord server