ananay / passport-apple

Passport strategy for Sign in with Apple
https://passport-apple.ananay.dev
142 stars 49 forks source link

Can I get the id_token in passport-apple? #17

Closed ken0010072001 closed 3 years ago

ken0010072001 commented 4 years ago

I saw that the apple sign in tokenresponse have id_token(JWT). but I find that passport js only return (req, accessToken, refreshToken, decodedIdToken, profile, cb). are there any way to get the JWT?

ananay commented 4 years ago

Hi @ken0010072001 is there a particular reason why you want the JWT? I can look into it and add that feature if it's really necessary but trying to figure out what's the use case

mmstart007 commented 4 years ago

@ananay I am getting an error in Apple login using passport-apple.

{"error":{"message":"Unable to verify authorization request state."}}

Could you please guide me to figure out ?

iyromanov commented 3 years ago

I also vote for passing JWT id_token to callback. My backend api accepts the JWT.

krymson24 commented 3 years ago

Hi @ananay -- are there plans to address this? I believe what I've seen in other passport packages is that they return the id_token. Happy to help and make the change, if necessary!

ananay commented 3 years ago

Sounds cool! @krymson24 thanks, please make a PR and I'll take a look! 🙌🏻

krymson24 commented 3 years ago

@ken0010072001 @iyromanov @ananay PR up!