Bindings overview
Workflows
The url
binding allows you to access the native JavaScript URLSearchParams
API. This is useful for parsing and manipulating URLs in your workflow and is often used in conjunction with the kinde.fetch binding.
export const workflowSettings = { // ...other settings bindings: {"kinde.url": {}}};
Once the binding is enabled you can use new URLSearchParams
directly.
export default async function (event) { const {data: token} = await fetch(`https://someapi.com/api`, { method: "POST", responseFormat: "json", headers: {"Content-type": "application/x-www-form-urlencoded"}, body: new URLSearchParams({a: "b", b: "c"}) });}