oauth2-client-ts
Version:
An exstensible OAuth 2.0, standard compliant client library for Node.js and the Web.
15 lines (14 loc) • 559 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isErrorResponse = void 0;
function isErrorResponse(obj, _argumentName) {
return ((obj !== null &&
typeof obj === "object" ||
typeof obj === "function") &&
typeof obj.error === "string" &&
(typeof obj.error_description === "undefined" ||
typeof obj.error_description === "string") &&
(typeof obj.error_uri === "undefined" ||
typeof obj.error_uri === "string"));
}
exports.isErrorResponse = isErrorResponse;