2fa sendOTP on Login issue

Hi Guys, (code added) setting up better auth 2fa, how do I send otp to email for 2fa if user is not logged in? I can send 2fa otp to verify enabling 2fa since user is already logged in but when user tries to sign in I get an invalid two factor cookie or unauthorized error
Was this page helpful?