MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / constructor

Method constructor

netlify/functions/_shared/middleware.js:32–36  ·  view source on GitHub ↗
(message, statusCode = 401)

Source from the content-addressed store, hash-verified

30 */
31class AuthError extends Error {
32 constructor(message, statusCode = 401) {
33 super(message);
34 this.name = 'AuthError';
35 this.statusCode = statusCode;
36 }
37}
38
39const isAllowedOrigin = (origin) => _isAllowedOrigin(origin, origins);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected