Skip to content

Social Models

Define your Social Models

There are one Pydantic model variation provided as mixin:

  • SocialInCreate – social user model for creating.

You should define it, inheriting from the mixin:

from authx.models import social

class Create(social.SocialInCreate):

class login(social.SocialInCreate):


Take Care! you can't add any field to the model, because it's relate to the third party of the Provider (ex. Facebook, Google, etc.)

Check the pydantic documentation for more information.

Check also: