sign in method didn't return role

why does not data return the role of the user from the database?

(i want to navigate to admin dashboard or user dashboard according to role)

sign in page
    const { data, error } = await authClient.signIn.email(
      {
        email,
        password,
      },
      fetchCallback({ setIsLoading })
    );
    console.log("data", data);
    // it should navigate according to role 
  }
Screenshot_2025-02-12_at_4.45.58_AM.png
Was this page helpful?