Hi,
Awesome platform and I love the documentation & onboarding for new developers, kudos to all the hard work!
I am curious about the way to refresh an access_token described here:
https://developers.miro.com/reference/get-new-access-token-using-refresh-token
The docs suggest we should send a post request with our sensitive data as query params
https://api.miro.com/v1/oauth/token?grant_type=refresh_token&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&refresh_token=REFRESH_TOKEN
However, adding sensitive data to query params is generally not good practice:
-
Query parameters are often logged: Web servers or proxy servers may log the URLs, including the query parameters, which could expose sensitive data in logs. This poses a risk if the logs are accessible to unauthorized individuals.
-
Query parameters may be stored in browser history: If the request is made through a web browser, the URL with the query parameters may be stored in the browser's history. If someone gains access to the browser or its history, they could retrieve the sensitive data.
Is there a way to send the data as the encrypted body method of a post request? I am trying but it does not seem possible. Is there a reason query params were chosen?
Hope this helps,
Thanks