fix: auth redirects and routing context issues
This commit is contained in:
@@ -41,7 +41,6 @@ const handleVerifyOtp = async () => {
|
||||
try {
|
||||
const res = await verifyOtp({ email: email.value, code: otpCode.value })
|
||||
await handleLoginSuccess(res.token)
|
||||
router.push('/dashboard')
|
||||
} catch (err: any) {
|
||||
errorMessage.value = 'Codice OTP non valido o scaduto.'
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user