@nostr-wot/auth
Server-side NIP-98 login and sessions
Installation
terminal
$npm install @nostr-wot/auth@5.0.0 nostr-tools
For a new integration, use the maintained imports below. Packages imported directly belong in your dependencies. Add React only for React entry points.
Topics
Authenticate an HTTP session
Use @nostr-wot/auth on your server and /client in the browser. Mount the four routes shown below, then call loginWithSigner from a user action. This creates a server session using a kind-27235 NIP-98 event.
Server login, cookies and JWTs
Mount login routes, issue sessions and read authenticated server claims.