Had same issue. Fixed it by deleting the extra space from the client secret. When you copy it from google api console you get an extra space.