Skip to content

Authorization for accessing ALL user's Google Calendar from Firebase Cloud Functions  #1843

@nealdyrkacz

Description

@nealdyrkacz

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... )

Metadata

Metadata

Assignees

Labels

type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions