@progalaxyelabs/ngx-stonescriptphp-client 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -3
- package/fesm2022/progalaxyelabs-ngx-stonescriptphp-client.mjs +1467 -0
- package/fesm2022/progalaxyelabs-ngx-stonescriptphp-client.mjs.map +1 -0
- package/index.d.ts +378 -0
- package/package.json +16 -24
- package/HLD.md +0 -31
- package/docs/AUTH_COMPATIBILITY.md +0 -310
- package/docs/CHANGELOG.md +0 -261
package/README.md
CHANGED
|
@@ -7,18 +7,37 @@
|
|
|
7
7
|
|
|
8
8
|
**Note:** While published as `@progalaxyelabs/ngx-stonescriptphp-client`, this is the official client for [StoneScriptPHP](https://stonescriptphp.org). Future versions will migrate to the `@stonescriptphp` namespace.
|
|
9
9
|
|
|
10
|
-
## ✅ Authentication Support (
|
|
10
|
+
## ✅ Authentication Support (v2.0.0)
|
|
11
|
+
|
|
12
|
+
**Current Version: 2.0.0 (Modal-Based Authentication)**
|
|
11
13
|
|
|
12
14
|
**Fully compatible with StoneScriptPHP Framework v2.1.x authentication!**
|
|
13
15
|
|
|
16
|
+
### HTTP Client Authentication
|
|
14
17
|
- ✅ **Cookie-based auth**: Secure httpOnly cookies + CSRF (StoneScriptPHP v2.1.x default)
|
|
15
18
|
- ✅ **Body-based auth**: Legacy mode for custom backends
|
|
16
19
|
- ✅ **Configurable**: Choose your auth strategy via environment config
|
|
17
20
|
- ✅ **All HTTP methods**: GET, POST, PUT, PATCH, DELETE with automatic token refresh
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
### Modal-Based User Authentication (NEW in v2.0.0)
|
|
23
|
+
- ✅ **6 Auth Providers**: Google, LinkedIn, Apple, Microsoft, GitHub, Email/Password
|
|
24
|
+
- ✅ **Declarative Configuration**: Enable/disable providers via environment
|
|
25
|
+
- ✅ **Popup OAuth**: Social login via popup windows (no full-page redirects)
|
|
26
|
+
- ✅ **Fetch API**: Promise-based authentication (minimal RxJS)
|
|
27
|
+
- ✅ **Observable User State**: Reactive `user$` for UI updates
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
// Quick Example: Configure auth providers
|
|
31
|
+
authProviders: {
|
|
32
|
+
google: { label: 'Sign in with Google', enabled: true },
|
|
33
|
+
linkedin: { label: 'Sign in with LinkedIn', enabled: true },
|
|
34
|
+
emailPassword: { label: 'Email', enabled: true }
|
|
35
|
+
}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
See [Configuration](#configuration) and [AUTH-PROVIDER-CONFIG.md](AUTH-PROVIDER-CONFIG.md) for details.
|
|
20
39
|
|
|
21
|
-
📖 **Documentation**: [CHANGELOG](docs/CHANGELOG.md) | [Auth Compatibility](docs/AUTH_COMPATIBILITY.md)
|
|
40
|
+
📖 **Documentation**: [CHANGELOG](docs/CHANGELOG.md) | [Auth Compatibility](docs/AUTH_COMPATIBILITY.md) | [Provider Config](AUTH-PROVIDER-CONFIG.md) | [Modal Auth Spec](MODAL-AUTH-SPEC.md)
|
|
22
41
|
|
|
23
42
|
---
|
|
24
43
|
|