Pregunta de entrevista de IFDS Group

What is a way to perform authentication in JavaScript?