Create your first App and send authorized requests to the Webflow API

Hi I’m new on the world of webflow and I’m trying to follow the steps of

but for some reason when I run the node project and try to authorize webflow, I get and undefined url something like this

https://undefined/oauth/authorize?response_type=code&client_id

any idea of what’s going on?

I made it work with these two fixes:

  1. Replace undefined by webflow.com
  • const url_corrected = url.replace(‘undefined’, ‘webflow.com’)
  1. When getting the access token, it should be code: request.query.code
    not
    code:request.body.code

Hope this helps!