Pergunta de entrevista da empresa Vizmo

How jwt helps in the authentication? How password comparison takes place?

Resposta da entrevista

Sigiloso

29 de jul. de 2024

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.