Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export async function generateLink(inviteCode: string, recipientName: string) {
const packageName = VersionCheck.getPackageName().replace(/\.debug$/g, '.integration')
const playStoreLink = await VersionCheck.getPlayStoreUrl({ packageName })
const referrerData = encodeURIComponent(`invite-code=${inviteCode}`)
const referrerLink = `${playStoreLink}&referrer=${referrerData}`
const shortUrl = await dynamicLink(referrerLink)
const msg = i18n.t('sendFlow7:inviteSMS', {
name: recipientName,
code: inviteCode,
link: shortUrl,
})
return msg
}