{"library":"ag-auth","type":"library","category":null,"description":"ag-auth is the official authentication module for SocketCluster (now Asyngular), providing a robust mechanism for securing real-time applications using JSON Web Tokens (JWT). It handles the signing, verification, and management of authentication tokens. Currently at version 2.1.1, the package is actively maintained, with the latest significant update published in November 2025. It serves as the underlying engine for SocketCluster's `agServer.auth` object, abstracting the complexities of JWT handling. While alternative methods for JWT exist (e.g., direct `jsonwebtoken` usage), ag-auth integrates seamlessly into the SocketCluster ecosystem, offering a standardized and convenient approach to user authentication across HTTP and WebSocket flows. Its primary differentiator is this tight integration, ensuring compatibility and streamlined development within SocketCluster projects.","language":"javascript","status":"active","version":"2.1.1","tags":["javascript","auth","jwt","socketcluster"],"last_verified":"Wed May 27","install":[{"cmd":"npm install ag-auth","imports":["import { AuthEngine } from 'ag-auth';","import { SignTokenOptions } from 'ag-auth';","import { VerifyTokenOptions } from 'ag-auth';"]},{"cmd":"yarn add ag-auth","imports":[]},{"cmd":"pnpm add ag-auth","imports":[]}],"homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/ag-auth","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/ag-auth/compatibility"}}