Login, register, current user, logout and token refresh — with the bearer token applied automatically after sign-in. Plus auto-refresh (401 → refresh → retry, deduped), pluggable token storage (memory / localStorage) and auth-change subscriptions.
Install
$ npm install @lacspace/auth
Quick example
@lacspace/authts
auth.login({ email, password })
Returns { token, user }
Looking for the complete API and more examples? The npm page and GitHub README carry the full reference — or grab the PDF.