That’s definitely an issue integrating the AppleAuthentication button, before even getting to any of the interesting token code. A quick google search took me here, which has a few suggestions:
If that doesn’t help, I’d definitely recommend raising a GitHub issue or heading to StackOverflow, there’s much better community support there. Best of luck!