Hi everyone, I'm working on my first time iOS app in Swift and using a library for OAuth, and I found some weird behavior around the redirect_url param.
When I make a request to /authenticate, if this is the first time, we get the expected "connect to this app?" page and then the login page. But after logging in, we get a 500 error with a message about "missing redirect_url."
But then, if I try again now that I've already allowed the app to connect to my account and have a logged in session in the browser, we skip both those pages and go directly to my redirect url, getting the auth token and everything works perfectly.
I verified that it's specifically this param that's the issue by manually editing the library code to change the harcoded name "redirect_uri" to "redirect_url", and then both cases work perfectly, no 500s.
It seems to me that for some reason Untappd is following the spec on the initial /authenticate endpoint, but then loses the correct "redirect_uri" param if it goes through the login page. Has anyone run into this before?