I've implemented the with_thirdpartyemailpassword-...
# support-questions-legacy
a
I've implemented the with_thirdpartyemailpassword-2fa-passwordless 2FA example into my frontend template and all appears to be working fine excepts when I call
await signOut();
the client session hangs and becomes unresponsive and eventually chrome closes the window. There are no console logs. The functions makes a call to
http://localhost:3001/auth/signout
which responds 200 ... I was under the impression that a successful signOut yields 401. Does anyone have any suggestions? Is it okay to just post http://localhost:3001/auth/signout and then clear cookies?
supertokens-auth-react
self hosted core.
Copy code
const userSignOut = async () => {
    console.log("user sign out");
    await signOut();
    redirectToAuth({ show: "signin" });
// also tried window. useNavigator. etc ...
};
tried importing the signOut function from the recipe and also recipe/session ... same result
r
Hey @User so the sign out api call succeeds?
Hey @ashhh
Before which step in the code does it hang?
a
the client session hangs when calling
await signOut();
. that is to say that the front end session, my chrome tab hangs and becomes unresponsive until eventually chrome kills it.
r
Which recipe functions have you overriden when doing supertokens.init on the frontend?
And when you call signOut, does it call the api? And does the api return a 200?
Or does it hang before the api is called?
a
Copy code
:3000 fontend
:3001 backend - api-server from supertokens-auth-react/examples/with-thirdpartyemailpassword-2fa-passwordless
:3567 supertokens core
:3452 postgres
https://bpa.st/V7HA for frontend supertokens https://bpa.st/735Q for backend supertokens
r
Can you add a console log right after await signOut. Does it get printed?
a
it doesn't get printed.
r
hm. Can we get on a debugging call? this is really strange
a
sure
r
okay. I'll send over a link in 2 mins
a
ok
hey @ashhh we figured out the issue. Will release a fix today / tomorrow
a
Awesome. Thanks for being so responsive. 🙂
r
Just released a new version of supertokens-auth-react with the fix. The new version if 0.26.4
@ashhh
a
Just updated the package and it appears to be resolved. Thanks for the quick fix 🍻
r
great!!