LBRY Block Explorer

LBRY Claims • 06-authentication-strategies-advanced

e10468c151417b0c637d4a4f77deb0abfb58fc8f

Published By
Created On
25 Jun 2021 17:21:27 UTC
Transaction ID
Cost
Safe for Work
Free
Yes
06 - Authentication Strategies - Advanced Node and Express - freeCodeCamp
To be able to log in users using a username and password, we have to set up a 'strategy' so that we can use these details to authenticate and obtain the user's information.

Link to Challenge : https://www.freecodecamp.org/learn/quality-assurance/advanced-node-and-express/authentication-strategies
Written Guide: https://www.notion.so/ganeshh123/Authentication-Strategies-85cf3fac514f478d802b76da23858dbe

Full Playlist for this course : https://www.youtube.com/playlist?list=PLhGp6N0DI_1RL9djhgSH65pZhJ6xSyKX8
All Writen Guides for this course : https://www.notion.so/ganeshh123/ccf6039186334f83a54c1c9216f30e3c
All My Tutorials can be found at : https://www.notion.so/Tutorials-Ganesh-H-293ea420d34a464f9a1907e0405b5f26

00:00 - Introduction
00:18 - Installing passport-local
01:18 - Creating a Local Strategy
02:02 - Getting the User's Document from the Database - db.collection.findOne()
Returns one document that satisfies the specified query criteria on the collection or view. If multiple documents satisfy the query, this method returns the first document according to the natural order which reflects the order of documents on the disk.
https://docs.mongodb.com/manual/reference/method/db.collection.findOne/
06:02 - Making Passport Use the Strategy - passport.use()
Configure a strategy. Strategies have a "default name" assigned to them, so you don't have to give them a name.
https://github.com/jwalton/passport-api-docs#passportusestrategyname-strategy
07:00 - Challenge Solution

-————————————————————————————————————-
Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside a web browser. Node.js lets developers use JavaScript to write command line tools and for server-side scripting—running scripts server-side to produce dynamic web page content before the page is sent to the user's web browser.

Express.js, or simply Express, is a web application framework for Node.js. It is designed for building web applications and APIs. It has been called the de facto standard server framework for Node.js. Express runs between the server created by Node.js and the frontend pages of a web application. Express also handles an application's routing.

freeCodeCamp (also referred to as “Free Code Camp”) is a non-profit organization that consists of an interactive learning web platform, an online community forum, chat rooms, online publications and local organizations that intend to make learning web development accessible to anyone. Beginning with tutorials that introduce students to HTML, CSS and JavaScript, students progress to project assignments that they complete either alone or in pairs. Upon completion of all project tasks, students are p
...
https://www.youtube.com/watch?v=fA36I8CYFf0
Author
Content Type
Unspecified
video/mp4
Language
English
Open in LBRY

More from the publisher

Controlling
VIDEO
7 - R
Controlling
VIDEO
07 -
Controlling
VIDEO
AMERI
Controlling
VIDEO
10 -
Controlling
VIDEO
RESET
Controlling
VIDEO
02 -
Controlling
VIDEO
CAPTU
Controlling
VIDEO
14 -
Controlling
VIDEO
23 -