I have followed the documentation to the T and created a Google GCP external account with the required permissions. I have also created a connector on my nylas dashboard for google using my google client id and secrete plus google pub/sub project id.
I am trying to authenticate users using the nylas hosted authentication urlForOAuth2 method. I am able to detect the provider successfully using the auth.detectProvider and the url has been generated successfully but then I get an error indicating the request is not allowed. I don’t know what I am doing wrong but I believe I don’t have to verify my app for this to work with hosted authentication?
Thanks @Blag that was the key but even with hosted authentication, google is still warning my app is not verified, is that the normal behaviour?
Also I am unsure which of the events for messages will be triggered when the user receives a new message in my app? I checked the events for messages and couldn’t find that
Also please let me know how I can fetch the next bulk of messages if I want to fetch them in batches. I can see a nextCursor attribute, but I don’t know how that works.
Regarding app is not verified that is normal if you’re on a Sandbox environment…if you want your app to be verified you would need to talk with support and/or sales.