diff --git a/peertube-plugin-auth-saml2/main.js b/peertube-plugin-auth-saml2/main.js index 277a9b7..067e138 100644 --- a/peertube-plugin-auth-saml2/main.js +++ b/peertube-plugin-auth-saml2/main.js @@ -238,10 +238,12 @@ async function loadSettingsAndCreateProviders ( "#text": options.name_id } - store.serviceProvider.create_logout_request_url(store.identityProvider, options, (err, logoutUrl, requestId) => { + store.serviceProvider.create_logout_request_url(store.identityProvider, options, (err, logoutUrl) => { if (err) { reject('Cannot SAML 2 logout.', { err }) + return } + resolve(logoutUrl) }) } catch (err) {