MCPcopy
hub / github.com/parse-community/parse-server / validate

Function validate

spec/ParseUser.spec.js:3893–3902  ·  view source on GitHub ↗
(block)

Source from the content-addressed store, hash-verified

3891 let sessionToken;
3892
3893 function validate(block) {
3894 return request({
3895 url: `http://localhost:8378/1/classes/_User/${objectId}`,
3896 headers: {
3897 'X-Parse-Application-Id': Parse.applicationId,
3898 'X-Parse-REST-API-Key': 'rest',
3899 'X-Parse-Session-Token': sessionToken,
3900 },
3901 }).then(response => block(response.data));
3902 }
3903
3904 request({
3905 method: 'POST',

Callers 1

ParseUser.spec.jsFile · 0.85

Calls 1

requestFunction · 0.50

Tested by

no test coverage detected