DEV Community

Cover image for 🔒 How do you admin your Tokens on Github?
Lukas Bocanegra
Lukas Bocanegra

Posted on

🔒 How do you admin your Tokens on Github?

I'm using some APIs on my first web projects. I know isn't safe to let tokens visible on the repos, and I can use an .env file.

The thing is that, if I delete the project on my pc, will I lose the token info?

How do you admin your own tokens? I would like to read you.
Thanks! 🙌

Top comments (2)

Collapse
 
pyepye profile image
Matt Pye • • Edited

Do you use a password manager? Quite a few of them allow you to store other passwords or secure notes.

There are a lot of services which help deal with secrets management.
If you use AWS at all then you can have a look at AWS Secrets manager.
Vault by HashiCorp is another good option along the same lines

Collapse
 
chathula profile image
Chathula Sampath •

you need to keep it in env. If you delete it, you can regenerate one and use it. It is much safer than keeping one token everywhere.