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

Function handleSessionMissingError

src/rest.js:326–337  ·  view source on GitHub ↗
(error, className, auth, config)

Source from the content-addressed store, hash-verified

324}
325
326function handleSessionMissingError(error, className, auth, config) {
327 // If we're trying to update a user without / with bad session token
328 if (
329 className === '_User' &&
330 error.code === Parse.Error.OBJECT_NOT_FOUND &&
331 !auth.isMaster &&
332 !auth.isMaintenance
333 ) {
334 throw createSanitizedError(Parse.Error.SESSION_MISSING, 'Insufficient auth.', config);
335 }
336 throw error;
337}
338
339module.exports = {
340 create,

Callers 2

delFunction · 0.85
updateFunction · 0.85

Calls 1

createSanitizedErrorFunction · 0.85

Tested by

no test coverage detected