'Returning `None` from this function will redirect the browser
to the login page.'

def auth_complete(self, *args, **kwargs):

    try:
        return super(SocialAuthMixin, self).auth_complete(*args, **kwargs)
    except AuthFailed:
        return None
    except SocialAuthBaseException as e:
        logging.exception(e)
        return None
