Hey everyone 👋
I’m implementing oauth2 authentication with the Zapier Platform UI, and I can’t figure out how to access custom query parameters in the “Add OAuth v2 Endpoint Configuration” step.
The framework that I use for oauth2 requires every access token request to have a code verifier, which is just a huge string. I pass this as a “code_verifier” param along with the “code” and “state” in the Zapier redirect URL:
I can then access the code params from bundle.inputData.code. But when I try to use bundle.inputData.code_verifier I get an empty string (same with every custom param):
I’ve found a quick workaround for now: I combine both values into one huge string separated by “AND”, and put them into the “code” param. Then I use split(“AND”) method:
It works, but it’s definitely not the cleanest solution :) I wonder if I can just access the code_verifier directly.
Best answer by iansco
View original