Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
10

How to Get Your SID Cookie

RayhanADev
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.

image

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).

image

Step Three

Click into the Application Tab from the DevTools topbar.

image

Step Four

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

image

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!

image

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.

1 year ago
You are viewing a single comment. View All
1
1
RayhanADev
RayhanADev

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

1 year ago