Non-google users need to login twice due to CSRF error

I am using flask and python3 to make my apps.

During testing on localhost on a windows pc, there were no issues with login.

After deploying on a Linode server ubuntu 20.04 there is an error on the first login attempt made by users.

Non-google users need to login twice. The first login attempt results in the following error: Mismatching_State: Csrf Warning! State Not Equal In Request And Response. I am using the auth0 dev keys, though I do not think this should make any difference.

An update to this, I removed the google-oauth option on the app and this did not solve the problem.