MietzeKatze
MietzeKatze3w ago

convex better auth - website reloads on signIn

Hi there, so I finally managed to signIn as a user with convex-better auth. The problem I have is that it is immediatly reloading the page, and then it will not remember my sign in. My signIn:
const signIn = async () => {
await authClient.signIn.email({
email: "cool@email.com",
password: "coolpassword",
rememberMe: true
}, {
onError: (ctx) => {
alert(ctx.error.message)
},
onSuccess: () => {
console.log("loggedIn")
}
})
}
const signIn = async () => {
await authClient.signIn.email({
email: "cool@email.com",
password: "coolpassword",
rememberMe: true
}, {
onError: (ctx) => {
alert(ctx.error.message)
},
onSuccess: () => {
console.log("loggedIn")
}
})
}
console logs:
logged in
logged in
page reloads and convex dev throws the error:
[CONVEX H(GET /api/auth/get-session)] Client disconnected
[CONVEX H(GET /api/auth/get-session)] Client disconnected
note i have no callbackRoute set, I dont understand why its refreshing the page... does anybody know what could cause this behaviour?
6 Replies
Convex Bot
Convex Bot3w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
Clever Tagline
This might be related to the service outage. I suggest holding off until that’s resolved, then check again.
MietzeKatze
MietzeKatzeOP3w ago
what outage are you talking about ? , is there a site to check for outages?
erquhart
erquhart3w ago
Convex Status
Welcome to Convex's home for real-time and historical data on system performance.
Clever Tagline
Sorry, I posted that in the middle of running a bunch of errands. 🏃‍♂️ Usually when there's an outage, there's a lot of chatter about it in #general, even before the Convex team has a chance to update the status page that @erquhart shared. I recommend checking both of those places to see if something is globally amok before trying to troubleshoot specific project problems.
MietzeKatze
MietzeKatzeOP3w ago
yo ai again helped me so much. I should get on that ai train he ?! turns out I reset a local storage and that caused the rerender . Sry for blaming it onto better-auth . Shame on meeee 🥲

Did you find this page helpful?