The Apple authentication (and indeed, all other auth methods in DIscourse) are not designed to be used via the API. They should be used directly be end-users in a supported browser.
What problem are you trying to solve here? Perhaps we can work out an alternative solution?