Skip to content

Commit

Permalink
refactor: use class regex
Browse files Browse the repository at this point in the history
  • Loading branch information
kdhttps committed Aug 30, 2024
1 parent 9b8fb0c commit 87b2964
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/providers.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ async function setupStrategy (provider) {
)
}
}
providerOptions.idpCert = providerOptions.idpCert.replace(/\n| /g, '')
providerOptions.idpCert = providerOptions.idpCert.replace(/[\n ]/g, '')
const samlStrategy = new Strategy(providerOptions, verify)
passport.use(id, samlStrategy)
spMetadata.generate(provider, samlStrategy)
Expand Down

0 comments on commit 87b2964

Please sign in to comment.