Conversation
dit is erg hard nodig!!! |
Dit lijkt bij mij te werken. Zit zelf nog te wachten op een token refresh of dat goed werkt. |
Do we know whether the reddit session cookie can change? If so, we should capture the Set-Cookie header of the response and update |
I am pretty sure it is static (or at least valid for a long time), but I don't think it hurts to just do this anyway. |
Token refresh just happened on my end btw and it seems to still be placing pixels after it. |
Initial token request works on my end as well, waiting for the refresh now. so far so good! |
Seems like this won't be easy to do after all, since the response to our request to /r/place does not return a set-cookie header for this cookie. |
Refreshing works. Just auto refreshed 2 clients and placed a tile. |
Use
reddit_session
cookie to refresh the accessToken on headless bots. Currently still testing.This PR changes the bot.js script to take a semicolon (
;
) separated list of cookies instead of a comma (,
) separated list of accessTokens. The env variable is also changed fromACCESS_TOKEN
toREDDIT_SESSION
to reflect thisHow to get
reddit_session
cookieCookies
reddit_session
cookie