I am trying to create a plugin for the Figma API as I want to create an application with it.
I understand the Oauth2 flow and so far so good. I am able to get the access token, but I think the connection is failing once the token is obtained. As in profile url is not being called properly and I get a 400 error.
- Getting to the figma authorization page.
- Click accept and I am returned to bubble plugin editor.
Things not working:
- The call to profile endpoint after authorization.
How I know the token is being obtained? If I tick the token is returned in query string, then there is an error, since the token is not there, but the response is understood by bubble as the error, and it is all there.
I have tried the spotify API and was able to access it fine, but I am not sure what’s happening here. Am I missing any headers?
I also tried using the different way to access the API which is with a user generated token provided in the headers, this works fine in postman. but no luck using bubble.
If anybody can point me in the right direction it would be an amazing. Thanks