How to Get Your SID Cookie
h
RayhanADev

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 connect.sid cookie!

⚠️ 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⚠️

Step One

Navigate to https://replit.com/~ when you are logged in. This should be your account homepage.

Step Two

Open up DevTools from the triple-dot menu > More Tools > Developer Tools or with Ctrl + Shift + I (Windows) or Cmd + Alt + C (Mac).

Step Three

Click into the Application Tab from the DevTools topbar.

Step Four

Open the Cookies dropdown on the left side and click the https://replit.com item.

Step Five

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 connect.sid cookie!

Closing

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.

You are viewing a single comment. View All
PaimonWheeWhee

what does this do though

RayhanADev

@PaimonWheeWhee it gets you your connect.sid token, which applications like Replit User Search v3 use!