Debian Codegraph @

docs/socialaccount/signals.rst

raw
1 Signals
2 =======
3
4 There are several signals emitted during authentication flows. You can
5 hook to them for your own needs.
6
7 - ``allauth.socialaccount.signals.pre_social_login(request, sociallogin)``
8 Sent after a user successfully authenticates via a social provider,
9 but before the login is fully processed. This signal is emitted as
10 part of the social login and/or signup process, as well as when
11 connecting additional social accounts to an existing account. Access
12 tokens and profile information, if applicable for the provider, is
13 provided.
14
15 - ``allauth.socialaccount.signals.social_account_added(request, sociallogin)``
16 Sent after a user connects a social account to their local account. This
17 is an explicit action and does not get called for the creation of a
18 socialaccount.
19
20 - ``allauth.socialaccount.signals.social_account_updated(request, sociallogin)``
21 Sent after a social account has been updated. This happens when a user
22 logs in using an already connected social account, or completes a `connect`
23 flow for an already connected social account. Useful if you need to
24 unpack extra data for social accounts as they are updated.
25
26 - ``allauth.socialaccount.signals.social_account_removed(request, socialaccount)``
27 Sent after a user disconnects a social account from their local
28 account.