Magesh Ravi
Artist | Techie | Entrepreneur
I'm working on a project that uses Django-allauth. The application accepts signing up with email (local account) and signing in with Google (social account).
Imagine a user signing up with their email (local account). Later, the same user tries to sign in with Google with the same email. What's the expected behaviour here?
If the latter option is your preferred implementation, the following settings should help.
ACCOUNT_AUTHENTICATION_METHOD = "email"
ACCOUNT_EMAIL_REQUIRED = True
SOCIALACCOUNT_PROVIDERS = {
"google": {
"EMAIL_AUTHENTICATION": True,
"SOCIALACCOUNT_EMAIL_AUTHENTICATION_AUTO_CONNECT": True
}
}