Authentication is a crucial aspect of modern web applications, ensuring that users are who they claim to be and safeguarding…