Martin Poirier Théorêt
I am planning to implement Apple Sign In really soon (like now) and I have a flow that I am not sure will work.
I’ll explain the flow we have on facebook that I am trying to mimic.
On any app (Apple, Android, Html/Javascript) we are using the sdk to connect the person. Once they have the connection token they call our api endpoint to connect “via facebook” and they send me the token. From there I call facebook and get the facebook id, email, etc… That I need and configured via the scope.
From there I find/create the associated user, generate a app token for that user and we use this token. After that we don’t care about the facebook token since we are using our token. If someone log off and log in again we will use a new facebook token and will be able to find it via the facebook id.
Now, from what I read in this thread there is no Apple API to get the name, email, etc… ? From the server point of view I would want only to receive the token and fetch the information from apple. But the flow with the redirect url would provide this information only on the redirect/first request… That doesn’t seem to be a option with the flow I am explaining, there is no server side redirect involve everything is done client side.