custom field value based on signup value

I want make an additional field so the user can select if their profile should be public or not. but i want it to be true or false based on the sign up method.

When the user signs up with google the account should be private by default.
when its twitch or discord it should be public by default.

for now i have the following:
  user: {
    additionalFields: {
      public: {
        type: "boolean",
        required: true,
      }
    }
  },


im thinking of using the hooks for this? what would be the best way to approach this?
Was this page helpful?