how to pass extra data to sign in functions

I have custom roles in user table that i want to specify so that the created user is created with the correct role depending on how they sign in.

 await authClient.signIn.magicLink({
      email: values.email,
      // i need to pass something like { role: "seller"} that I can check in hooks and perform other functions
});
Was this page helpful?