How to Get Your SID Cookie
How to Get YOUR connect.sid Cookie!
Nowadays, tons of applications on Replit involve accessing your Replit account. While an OAuth API is yet to exist, one can access account data via authenticated GraphQL queries. These queries are created with a special cookie called
connect.sid, however how does one acquire this cookie? In this tutorial I'll teach you how to grab your
⚠️ GIVING SOMEONE THIS COOKIE IS THE SAME AS GIVING THEM YOUR LOGIN DETAILS. MAKE SURE TO ONLY GIVE THIS COOKIE TO APPS YOU TRUST, LOGGING OUT WILL INVALIDATE THE COOKIE, SO LOGOUT IF NEEDED⚠️
Navigate to https://replit.com/~ when you are logged in. This should be your account homepage.
Open up DevTools from the triple-dot menu > More Tools > Developer Tools or with
Ctrl + Shift + I (Windows) or
Cmd + Alt + C (Mac).
Click into the Application Tab from the DevTools topbar.
Open the Cookies dropdown on the left side and click the
connect.sid cookie and copy it's value. Make sure that the Show URL Decoded value is marked true. Congrats you have your
I hope this tutorial was helpful, especially if you came from an application that requires one of these cookies. If you have any questions about getting this cookie feel free to ask in the comments below.