Files
suzzy-frontend/suzzy-v0-standalone/assets/scripts/login-verifylogin.ts
T
2026-05-24 21:58:23 -07:00

10 lines
409 B
TypeScript

(() => {
const href = document.location.href
const token = new URLSearchParams(href.slice(href.indexOf('?') + 1)).get('token')
if (token) CallAPI('POST', '/v1/auth/verify-login/' + token, 'public')
CreateMessage(
'Login Verified',
'You can log in from the your new device. Redirecting you to the login page...',
'Done', () => window.location.assign('/login')
)
})()