2FA Error

await authClient.twoFactor.verifyTotp({
    code: "" // user input
})


so im following the docs, i called twoFactor enable, it successfully generated totpURI and backcodes, Im also able to scan the code using google authenticator. but then im trying to verify the code. i get invalid two factor cookie. I'm also getting 401 unauthorized. What the problem or if im doing something wrong
Was this page helpful?