Plugin OAuth2 flow for figma

Hi there

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.

Things working:

  • 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

Running into the same issue too. Were you able to figure it out ?


@mirbailey7 @gortega Hi I have the same problem with the figma API as you described. Did you manage to solve it? I will be grateful for help.

Unfortunately I could not solve it. I gave up and moved on to another project :frowning:

Good luck!