Wrong password when social authentication in allauth
I have been struggling with this for days, I'm a beginner and I don't know how to implement social authentication (authentication by providers) neither in allauth nor in headless-allauth libraries, I have implemented a sign in with providers in reguler allauth, my settings.py
SOCIALACCOUNT_PROVIDERS= {
'google': {
'SCOPE': [
'profile',
'email'
],
'AUTH_PARAMS': {'access_type': 'online'},
'APP': {
'client_id': '247133284916-r5pu7h3bnee0vbrbem7nhph5ffhkk5ob.apps.googleusercontent.com',
'secret': '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',
'key': ''
}
},
'github' : {
'SCOPE': [
'user'
],
'APP': {
'client_id': 'Ov23liT9Y3rQjzd25rZN',
'secret': '02f816d85ec879da6ddec85d2d169a019fa1084b',
'key': ''
}
},
'facebook':
{'METHOD': 'oauth2',
'SCOPE': ['email','public_profile'],
'AUTH_PARAMS': {'auth_type': 'reauthenticate'},
'FIELDS': [
'id',
'email',
'name',
'first_name',
'last_name',
'verified',
'locale',
'timezone',
'link',
'gender',
'updated_time'],
'EXCHANGE_TOKEN': True,
'LOCALE_FUNC': lambda request: 'en_US',
'VERIFIED_EMAIL': False,
'VERSION': 'v2.4'}
}
html
<a class="social-login Google-login" href="{% provider_login_url 'google' %}">
<span class="G-logo"></span>
<span>Log in with Google</span>
</a>
when I try to sign up with a provider (google for instance) I am signed in and everything is ok, but when I try to reauthenticated in headless-allauth library by entering the password (I am using both) or I try to sign out then sign in by entering the email and password, I always keep getting (the password you specified is not correct.) when I am sure of my google account password, and I can't figure out how to implement social authentication in headless-allauth at all because I don't understand the docs, if anyone can help me with the password problem in allauth or can guide me to implement social authentication using headless-allauth I will truly appreciate it.