How jwt helps in the authentication? How password comparison takes place?
Sigiloso
JWT creates access and refreshToken using which a user get authenticated. Bcrypt package hash the password and stores it in the database. Whenever you try to login the system, entered password is hashed and compared with the one stored in the database.