{"library":"secure-web-token","type":"library","category":null,"description":"Secure Web Token (SWT) is a Node.js library offering a security-focused alternative to traditional JSON Web Tokens (JWTs). Unlike JWTs, which are merely Base64 encoded, SWT employs AES-256-GCM encryption for payloads and implements server-side session binding, making tokens device-bound and preventing reuse on other devices. This approach significantly enhances security by making stolen tokens useless for attackers. The current stable version is 1.2.8. It provides a simple API with `sign()` and `verify()` functions, supporting expiry and HttpOnly session cookies. Key differentiators include full payload encryption, true device binding, and server-side session management, making it suitable for high-security applications like admin panels, SaaS dashboards, and internal tools where preventing token leakage and session hijacking is critical.","language":"javascript","status":"active","version":"1.2.8","tags":["javascript","token","security","typescript"],"install":[{"cmd":"npm install secure-web-token","imports":["import { sign } from 'secure-web-token'","import { verify } from 'secure-web-token'","import { getStore } from 'secure-web-token'"]},{"cmd":"yarn add secure-web-token","imports":[]},{"cmd":"pnpm add secure-web-token","imports":[]}],"homepage":"https://securewebtoken.vercel.app","github":"https://github.com/MintuSingh07/node-securewebtoken","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/secure-web-token","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/secure-web-token/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}