Hi I am facing an issue where only on ios (iphones/ipads and NOT macs) the email password login cust...
k
Hi I am facing an issue where only on ios (iphones/ipads and NOT macs) the email password login custom ui recipe doesnt work i.e. the user is logged in (sign in event and post sign in callback is triggered) but gets logged out after 0.5secs or so. I am using supertokens on the backend on express and logging in using the
signIn
function provided by
supertokens-web-js/recipe/emailpassword
on a vite react frontend like so
Copy code
ts
import { signIn } from "supertokens-web-js/recipe/emailpassword";
...
const response = await signIn({
        formFields: [
          {
            id: "email",
            value: email,
          },
          {
            id: "password",
            value: password,
          },
        ],
      });

      if (response.status === "FIELD_ERROR") {
        response.formFields.forEach((formField) => {
          if (formField.id === "email") {
            // Email validation failed (for example incorrect email syntax).
            form.setError("email", { message: formField.error, type: "validate" });
          }
        });
      } else if (response.status === "WRONG_CREDENTIALS_ERROR") {
        form.setError("root", { message: "The given email/password doesn't exist." });
      } else {
        // navigate(searchParams.get("redirectToPath") ?? "/");
        alert("Logged in");
      }
Would really appreciate help on this issue
r
Hey. Are you using our iOS SDK?