FreshWorks Studio interview question

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