DEV Community

Md Yasin Miah
Md Yasin Miah

Posted on

MongossJs, JWT

MongooseJs :

Basically Mongoose is a package.It is a mediator between the MongoDB server and NodeJS application. It is an Object Document Mapper(ODM) that allows us to define objects with strongly-typed-schema. These objects are mapped to a MongoDB document. Mongoose also supports all the CRUD operations – Creating, Retrieving, Updating, and Deleting.

JWT :

JWTs are commonly used as OAuth bearer tokens. In this way, an authorization server creates a JSON Web Token (JWT) at the request of a client for security parpas. The client will then send this JWT with its request to a REST API. The REST API will verify that the JWT’s signature matches its payload and header to verify this JWT token. When the REST API has verified the JWT, the client's request is accepted.
In short, To authenticate users and share information JWTs are used as a secure way.

Top comments (0)

Postgres on Neon - Get the Free Plan

No credit card required. The database you love, on a serverless platform designed to help you build faster.

Get Postgres on Neon

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay