Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OAuth URL from non-google service is not rendering on CardService (Gmail addon) #452

Open
thebinod7 opened this issue Jul 11, 2023 · 8 comments
Assignees

Comments

@thebinod7
Copy link

I am using Oauth service to connect with third party service (Monday.com) using this library but, Authorize button only rendered if Oauth URL is from Google. I want this URL(https://auth.monday.com/oauth2/authorize) to be rendered on Card to trigger but I get an error. However, if the URL is google based, it is rendered. Below is screenshot:
auth_monday
err

@erickoledadevrel
Copy link
Contributor

This appears to be an issue with add-ons, and not this library. That said, I think the issue likely is due to you not adding monday.com to your URL allowlist:

https://developers.google.com/apps-script/add-ons/concepts/workspace-manifests#allowlist

@Invincible321
Copy link

Hi @thebinod7 , im also working on similar addon. so after OAuth how do i refresh the existing card automatically and display another card?

@thebinod7
Copy link
Author

thebinod7 commented Aug 17, 2023

You have to check before card render, if you have accessToken go to Card1 else go to Card2

@vijayavula8
Copy link

for a user who don't have access he has to go to OAuth(card1), after this step now my user have accesstoken so the UI should refresh automatically and show card2 however this is not happening and user have to manually refresh the addon. I hope you understood my point?

@thebinod7
Copy link
Author

yes, it's like

function homePageRender(){
 const accessToken = getAccessToken();
 if (accessToken) return Card1;
 else return Card2;
}

@vijayavula8
Copy link

hi binod, do you have any idea on how to create checkbox in the gmail add-on? and also how to change font family?

@thebinod7
Copy link
Author

Hi, you can create checkbox using google card service: https://developers.google.com/apps-script/reference/card-service/selection-input

Also, can use setFontFamily method for changing font family: https://developers.google.com/apps-script/reference/slides/text-style#setFontFamily(String)

@Invincible321
Copy link

Invincible321 commented Aug 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants