Hacker News new | ask | show | jobs
by Operyl 973 days ago
Store the basket in a temporary cookie, not the oauth state parameter.
1 comments

Also only allow redirects to your domain or website, not literally anywhere on the internet. And the token should stay in your website’s cookies - it’s unclear why the second redirect would ever need to pass a token if it can read it from site cookies in the first place.