Please check the comments of https://github.com/crewjam/saml/pull/449#issuecomment-1680238377 and apply it to this fork.
Please check the comments of crewjam#449 (comment) and apply it to this fork.