[Django]-Django OAuth2 Error: invalid_client and client_id=None when client_id has been provided

10👍

i was having the same problem just change

GOOGLE_OAUTH2_CLIENT_ID = '***.apps.googleusercontent.com'
GOOGLE_OAUTH2_CLIENT_SECRET = '****'

To

SOCIAL_AUTH_GOOGLE_OAUTH2_KEY = '****.apps.googleusercontent.com'
SOCIAL_AUTH_GOOGLE_OAUTH2_SECRET ='****'

in the settings.py file

Leave a comment