apps/meteor/app/meteor-accounts-saml/server/lib/parsers/LogoutResponse.ts
Function validate
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public async validate(xmlString: string, callback: ILogoutResponseValidateCallback): Promise<void> {
SAMLUtils.log(`LogoutResponse: ${xmlString}`);
const doc = new xmldom.DOMParser().parseFromString(xmlString, 'text/xml');
if (!doc) {
Avoid too many return
statements within this function. Open
Open
return callback(null, inResponseTo);