Pergunta de entrevista da empresa FreshWorks Studio

How would authenticate a user? explain jwt and how it works.