Files
suzzy-frontend/suzzy-v0-standalone/assets/scripts/login-verifyemail.ts
T

10 lines
404 B
TypeScript
Raw Normal View History

2026-05-24 21:58:23 -07:00
(() => {
const href = document.location.href
const token = new URLSearchParams(href.slice(href.indexOf('?') + 1)).get('token')
if (token) CallAPI('POST', '/v1/auth/verify-email/' + token, 'public')
CreateMessage(
'Email Verified',
'Thank you for verifying your email! Redirecting you to your profile...',
'Done', () => window.location.assign('/profile')
)
})()