How do I hide a cookie?

I’m making a rank bot in roblox and I realized anyone can see the code and login. Is there a way to hide the login token to everyone?

-Thanks! Sabrina563

Yes. You can use a .env file and it will be hidden. However, you can’t make the source code private because well, you have to pay for it

First enter your .env file and create a variable named ROBLOX_TOKEN and insert your roblox token then change roblox token thing with process.env.ROBLOX_TOKEN

6 Likes

It worked, thanks!

1 Like