You don’t need change anything in source code.
*Note: Login via Apple just work on only iOS 13 or newer. And don’t work on Android platform.