I'm building a Google Calendar integration into my app where the user can connect their google calendar via the Google Calendar API. I am able to successfully grab everything and have their calendar connect if they haven't connected their account to us before. But I'm experiencing an error, for example, if the user disconnect their google calendar and I get rid of the access token and refresh token from my database and then they try to reconnect their account, it doesn't work. How can I solve this problem?
I'm using ReactJS, NodeJS, and MongoDB. Thank you!