← Back to context

Comment by Operyl

3 years ago

Store the basket in a temporary cookie, not the oauth state parameter.

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.