You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until I implement better solution I still keep returnTo in session to return user to the page where he initiated login. This is possible with keepSessionInfo: 'true' option, it works with google and facebook but not with apple. After apple callback session is just deleted.
// in auth route:passport.authenticate('apple',{state:JSON.stringify(state),nonce:nonce})(req,res,next);// passport callback:passport.use('apple',newAppleStrategy({ ....},(req,accessToken,refreshToken,profile,done)=>{letstate={};try{state=JSON.parse(req.body.state);}catch(e){console.error('ignoring un-parseable apple sign-in state',e);}// state.redirectTo is your redirection URL, but it might have been// modified by the user (and is visible to them) so don't put secrets// in it or trust its value to be secure!// ... the rest of your sign-in logic ...}))
Until I implement better solution I still keep returnTo in session to return user to the page where he initiated login. This is possible with keepSessionInfo: 'true' option, it works with google and facebook but not with apple. After apple callback session is just deleted.
Is there any way to fix it?
jaredhanson/passport#919
The text was updated successfully, but these errors were encountered: