- [Narrator] If you've ever worked with Github
or other similar tools you know what a token is
and how it is used for, and if that's the case
feel free to skip this video.
Tokens give external tools access to your packages.
For example, you could use a token with Travis CI.
So let me demonstrate where you can create tokens.
So I'm back into my NPM account here, then I click
on the right where I can see my profile,
and then go to the tokens area.
This is where you can create new tokens, alright?
Now we have published tokens that have been created from
our terminal, but if you'd like to create a new token for
let's say Travis CI you can manually create one by
clicking on Create new token right here.
And you can basically determine what is the access level.
So for example you can read and publish with a token
or you can only read.
So if you want to create a read and publish one
all you have to do is create token.
Then you have a brand new token that you can use.
So you can copy and paste this token
into your new tools such as Travis CI.
So, for example if you don't want to use any of these access
tokens, eventually you could literally delete it.
So for example our token that we just created I don't really
need it, so I'm going to delete it.
So all I have to do is click on that token, and then
delete select token or merely click on the red icon here
and delete that token, and this token is done.
So if I didn't want to use any of those I could select
them all and delete tokens.
I'm not going to do that cause I'm still using some of these,
but that's how you manage your tokens.
Some of the tools that you're going to use like Travis CI
may actually create one automatically for you.
So what they would do is ask you access to your NPM account
from their tool, and the create a token
automatically for you, and then you can see it here.
So this is what a token is, and how you can manage it.