Files
vitanovaPackages/packages/auth/package.json
sdarbinyan 3bc2a42488 feat(auth): add AdminAuthService.loginWithCredentials + rate_limited AuthFailure code
Convenience wrapper around MarketplacesAuthGateway.loginWithCredentials('admin', ...)
that activates the returned session in one call, for apps building a custom admin
login screen. AuthFailure gains a rate_limited code (HTTP 429, parsed Retry-After)
and an optional status field so 401/403/429 surface distinctly without new plumbing.

No credentials, no client-side comparison, no superadmin concept anywhere in this
package - same code path as any other admin credential login. Inert without a
backend implementing POST {credentialsPath} { login, password, mode: 'admin' }.

Additive, backward-compatible. QR/Yandex flows unmodified.
2026-08-23 21:33:52 +04:00

30 lines
746 B
JSON

{
"name": "@marketplaces/auth",
"version": "0.3.0",
"description": "Standalone Angular authentication UI and client for marketplaces projects.",
"module": "dist/fesm2022/marketplaces-auth.mjs",
"typings": "dist/types/marketplaces-auth.d.ts",
"files": [
"dist"
],
"scripts": {
"build": "ng-packagr -p ng-package.json -c tsconfig.json",
"test": "node --test test/*.test.mjs"
},
"dependencies": {
"qrcode": "^1.5.4",
"tslib": "^2.8.0"
},
"peerDependencies": {
"@angular/core": ">=22.0.0",
"@angular/common": ">=22.0.0",
"@angular/forms": ">=22.0.0",
"@angular/router": ">=22.0.0",
"rxjs": ">=7.8.0"
},
"publishConfig": {
"access": "restricted"
},
"license": "UNLICENSED"
}