Users have signed in to Flutter app with Google Sign In, which has 'https://www.googleapis.com/auth/calendar.events.readonly' as a scope. In the sign in flow the accessToken and idToken are returned from the google_sign_in package. User is created / updated in Firebase.
Now I want to be able to run a cloud function every so often that will access each user's Google Calendar and get an event that is due to start with in a certain period of time.
I have looked through a lot of documentation and only confused myself even more.
I'm certain I need to use a service account, but I am having a hard time grasping the steps to take with google-api-nodejs-client to actually access a users calendar in a cloud function ( that no longer needs to ask a user for permission with redirects, etc... )