I don't know if this is the right fix but it doesn't break anything and it makes Apple Sign in work again on iOS.
Since nobody have time to actually investigate and fix this problem I'm making this pull request with suggested fix / workaround from ngocnt1 in issue #1660 to attract more attention from someone that could actually investigate this problem or at least merge this pull request so people could use Apple Sign in on iOS again.
I don't know if this is the right fix but it doesn't break anything and it makes Apple Sign in work again on iOS.
Since nobody have time to actually investigate and fix this problem I'm making this pull request with suggested fix / workaround from ngocnt1 in issue #1660 to attract more attention from someone that could actually investigate this problem or at least merge this pull request so people could use Apple Sign in on iOS again.