apps/meteor/app/meteor-accounts-saml/server/methods/samlLogout.ts
Function samlLogout
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
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' });