How to use the querystring.unescape function in querystring

To help you get started, we’ve selected a few querystring examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oauthinaction / oauth-in-action-code / exercises / ch-11-ex-4 / completed / authorizationServer.js View on Github external
var decodeClientCredentials = function(auth) {
	var clientCredentials = new Buffer(auth.slice('basic '.length), 'base64').toString().split(':');
	var clientId = querystring.unescape(clientCredentials[0]);
	var clientSecret = querystring.unescape(clientCredentials[1]);	
	return { id: clientId, secret: clientSecret };
};
github oauthinaction / oauth-in-action-code / exercises / ch-15-ex-1 / completed / authorizationServer.js View on Github external
var decodeClientCredentials = function(auth) {
	var clientCredentials = new Buffer(auth.slice('basic '.length), 'base64').toString().split(':');
	var clientId = querystring.unescape(clientCredentials[0]);
	var clientSecret = querystring.unescape(clientCredentials[1]);	
	return { id: clientId, secret: clientSecret };
};
github oauthinaction / oauth-in-action-code / exercises / ch-15-ex-1 / authorizationServer.js View on Github external
var decodeClientCredentials = function(auth) {
	var clientCredentials = new Buffer(auth.slice('basic '.length), 'base64').toString().split(':');
	var clientId = querystring.unescape(clientCredentials[0]);
	var clientSecret = querystring.unescape(clientCredentials[1]);	
	return { id: clientId, secret: clientSecret };
};
github oauthinaction / oauth-in-action-code / exercises / ch-11-ex-5 / completed / authorizationServer.js View on Github external
var decodeClientCredentials = function(auth) {
	var clientCredentials = new Buffer(auth.slice('basic '.length), 'base64').toString().split(':');
	var clientId = querystring.unescape(clientCredentials[0]);
	var clientSecret = querystring.unescape(clientCredentials[1]);	
	return { id: clientId, secret: clientSecret };
};

querystring

Node's querystring module for all engines.

MIT
Latest version published 4 years ago

Package Health Score

55 / 100
Full package analysis