Hello, I have a question, I’m working on an application for the Pipedrive Marketplace, and this is my first experience in developing such an application, so I wanted to ask you a few questions, ask for help.
My application has an integration with Ukrainian scoring service, and I need it to work in background all the time with webhooks. And I did this task, but only with api key, and for multiuser application I need to use 0auth2 authorization.
I read about it in your documentation and did everything based on your examples, but I have a problem.
- When I use access token to create the fields in the organization everything goes smoothly, the fields are created.
But when I try to update these fields with webhook, I get error “Error: OAuth 2 property refreshToken is not set.”, although again no such thing when creating.
-
Another question, I understand storing access tokens in client cookies is not the best choice for multi-user application, would it be better to store them in the database?
-
And lastly, what is the best way to update the access token in the background, without going directly to the site itself, so that the application always has the opportunity to give what the user needs