Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
refactor: use const
jamesgeorge007908d672cf23d
diff --git a/assets/js/oauth.js b/assets/js/oauth.jsindex 10f584ef1..927f6d0a4 100644--- a/assets/js/oauth.js+++ b/assets/js/oauth.js@@ -5,7 +5,7 @@ const redirectUri = `${window.location.origin}/`;// Make a POST request and parse the response as JSONconst sendPostRequest = async (url, params) => {- let body = Object.keys(params)+ const body = Object.keys(params).map(key => `${key}=${params[key]}`).join("&");const options = {