RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/meteor-accounts-saml/server/methods/samlLogout.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function samlLogout has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async samlLogout(provider: string) {
        const userId = Meteor.userId();
        // Make sure the user is logged in before we initiate SAML Logout
        if (!userId) {
            throw new Meteor.Error('error-invalid-user', 'Invalid user', { method: 'samlLogout' });
Severity: Minor
Found in apps/meteor/app/meteor-accounts-saml/server/methods/samlLogout.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status