Line feed %0A is being added to my redirect_uri

Description
Created oauth app.
Added uri http://localhost:4000/oauth-callback to both Redirect URL for OAuth and Whitelist URLs.

When I click on install everything works and I’m able to get the token (href="https://zoom.us/oauth/authorize?response_type=code&client_id=yhqWp3x0RKqxPZscTvv34w&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Foauth-callback")

However, if in the browser I go to localhost:4000, I get this uri:

https://zoom.us/oauth/signin?_rnd=1625052669538&client_id=yhqWp3x0RKqxPZscTvv34w&redirect_uri=http%3A%2F%2Flocalhost%3A4000%2Foauth-callback%0A&response_type=code

With this message: Invalid redirect url (4,700)

Notice that at the end of the redirect_uri parameter, after oauth-callback a line feed ‘%0A’ has been added somehow, and that’s the reason it doesn’t work. If I manually delete that line feed and press enter it will take me to the installation/authorization page.

Here’s my code: zoom.js · GitHub

Error
Invalid redirect url (4,700)

Which App Type (OAuth / Chatbot / JWT / Webhook)?
OAuth

Hi @danivanzoom,

Thanks for reaching out about this.

It seems like perhaps a space is being added to your redirect URL. Can double check that your localhost environment isn’t somehow adding a space to the URL that is then getting encoded?

Let me know—thanks!
Will

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.