I am using the Scheduler and Email APIs and will have my users authenticate using Google Sign-in, but I am not sure what would be the best auth flow for this.
Currently I am going for the following:
- User logs in through Google and provides calendar and email access.
- Token is provided and we exchange for the grant_id.
- Store the grant_id in the DB
- Use the stored grant_id for providing the scheduling interface and using it to send emails.
Is this an okay flow or does the Nylas team recommend a different approach?