Gmail API pull files from users Gmail daily and process them with OCR API to get invoices information

I started to build invoices CRM saas, the system need to pull files from users Gmail daily and process them with OCR API to get invoices information.
I started to set up the Gmail API but I struggling to get the access token and the refresh token.
Also i struggling in get the file with the api.
Looking for reliable help!

You won’t be granted production access from Google( you asking to read personal information) . Bubble.io doesn’t match their security requirements. You will need your own code based app and pay big cash for security part.

I’ve been through that already. They sent me a huge PDF of security issues after their own audit.

Bubble support respond me back that they cannot make those changes as it involves touching a source code

u could build a small node js app that integrates with https://www.nylas.com/ and speaks with your bubble app ( good news is security part handled by this provider so u don’t have to care about audit from google ). Mind pricing tho