After adding the next auth and Google provider. I was getting this error on the client side:
[next-auth][error][CLIENT_FETCH_ERROR] "Unexpected token '<', "<!DOCTYPE "... is not valid JSON"
And getting the following error on the server side:
TypeError: cookie is not iterable