Apple Sign-in inconsistenly fails to redirect with FaceID

Hey, not sure if anyone else had that issue. But whenever users try to sign in with apple it opens their system faceid scanner which makes sense.

But for some reason, sometimes it just doesnt sign them in. Like, its inconsistent.

The sign in/up code is this and I checked it actually doesnt redirect the user so I tried redirecting them manually but that also doesnt do the trick

const onClick = async (provider: "google" | "apple") => {
  const res = await authClient.signIn.social({
    provider,
    callbackURL: callbackUrl,
  });
  if (res.error) {
    return toast.error(res.error.message);
  }
  if (!res.data.url) {
    return toast.error("Something went wrong. Please try again.");
  }
  // Failsafe that shouldnt be needed tbh but it also doesnt work
  if (res.data.redirect) {
    window.location.href = res.data.url;
  }
};


You can test it here https://app.staging.bacehub.de/ (looks like ass, made for mobile) and apparently if you use faceid it wont do anything no error nothing (at least according to Sentry)
Was this page helpful?