Adapter

class allauth.headless.adapter.DefaultHeadlessAdapter(request=None)

The adapter class allows you to override various functionality of the allauth.headless app. To do so, point settings.HEADLESS_ADAPTER to your own class that derives from DefaultHeadlessAdapter and override the behavior by altering the implementation of the methods according to your own need.

serialize_user(user) Dict[str, Any]

Returns the basic user data. Note that this data is also exposed in partly authenticated scenario’s (e.g. password reset, email verification).