Azure B2C custom policy sometime fails only in Safari browser with error:
ServerError: AADB2C90091: The user has cancelled entering self-asserted information.
In other browsers, like Chrome or Edge, works perfectly.
For sign-in flow, I use this template https://github.com/azure-ad-b2c/samples/tree/master/policies/custom-sm-displaycontrol/policy.