Explore how to add two-factor authentication and tokens with npm.
- [Instructor] Protecting your account…and access to your packages is crucial,…especially if you publish packages to NPM…and want to restrict access to them.…Let me demonstrate how this works.…The first thing you need to do is go to npmjs.com…and login into your account.…Once you're logged in, click on your profile…and then Profile Settings,…and then go into Two Factor Authentication…and then Modify 2FA.…
And what you want to do is to make sure…that you have authorization,…and publishing selected.…Do not disable it.…Whenever you are publishing new packages,…or whenever you're authorizing external applications,…you're gonna need a second factor code…that will be either emailed,…or use one of the authentication tools…such as Google Authenticator,…so then you need to click Submit,…and now you have it set.…
Now, also, if you want to set up tokens,…so for example, if you want to set up a token…for a specific application, you can do so right here…by actually creating a new token,…so, for example, we would create a new token,…
- OWASP resources and security threats
- Cross-site scripting and denial of service attacks
- Managing packages in a Node.js app
- Adding two-factor and read-only tokens with npm
- Using prepared statements for SQL/NoSQL
- Encrypting user data and session management
- Adding HTTPS protocol to an application
- Using cookie attributes
- Tools for testing
Skill Level Intermediate
Node.js: Deploying Applicationswith Kirsten Hunter1h 24m Intermediate
Node.js: Debugging and Performance Tuningwith Jon Peck2h 44m Intermediate
1. Security Overview
OWASP top 10 in Node.js2m 22s
2. Best Practices: Packages
3. Best Practices: Data
4. Best Practices: Server Level
5. Tools for Testing
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.