markbates / goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
https://blog.gobuffalo.io/goth-needs-a-new-maintainer-626cd47ca37b
MIT License
5.2k stars 566 forks source link

Apple login fails if user decides not to share Apple ID #543

Open zdraganov opened 4 months ago

zdraganov commented 4 months ago

Using the latest version of goth v1.79.0.

I found an error on some users attempting to login with Apple here and managed to reproduce it if on the step where apple asks you "Do you want to continue using App id for login with your Apple ID ?" and you click cancel. If user clicks continue on this flow everything works smoothly.

Scopes that I use are name and email, and I see that we already have some users in the database with hidden emails. Removing the scopes also do not helps.

The error comes from here

Anyone have idea what's going on?