-
Notifications
You must be signed in to change notification settings - Fork 209
Open
Labels
bugSomething isn't workingSomething isn't working
Description
[REQUIRED] Environment
- Browser version: Chrome 138.0.0.0 (MacOS)
- AA SDK version: @account-kit/react@4.48.0, @account-kit/infra@4.48.0
- Package: @account-kit/react
[REQUIRED] Describe the problem
When using the authenticate() method with email OTP, the onSuccess and onSettled callbacks never get triggered. Only onError triggers in rate-limiting cases, otherwise the SDK seems to hang with no response.
No visible console or network errors occur.
How to reproduce:
- Install the following packages:
{
"@account-kit/react": "^4.43.1",
"@account-kit/infra": "^4.43.1"
}
- Use this code:
import { useAuthenticate } from "@account-kit/react";
const { authenticate } = useAuthenticate();
authenticate(
{
type: "email",
emailMode: "otp",
email: "example@gmail.com"
},
{
onSuccess() {
console.log("β
Success callback hit");
},
onSettled() {
console.log("π‘ Settled callback hit");
},
onError(error) {
console.error("β Error callback hit", error);
}
}
);
- Observe that neither onSuccess nor onSettled gets triggered β even after entering the correct OTP.
Relevant code or sample repro:
See above code snippet. Let me know if youβd like a GitHub repo with full reproduction.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working