Vizmo interview question

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

Interview Answer

Anonymous

29 Jul 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.