social signUp flow

I want to enable my users to sign up with Apple. I have additional required fields on the user model:
user: {
    additionalFields: {
      surname: {
        type: "string",
        required: true,
      },
      type: {
        type: "string",
        required: true,
      },
    },
  },

Using email signUp flow I can add those fields as 1st argument to the signUp function:
authClient.signUp.email(registerFormData, { ... How can I do the same using authClient.signIn.social({provider: 'apple' ...
Was this page helpful?