@vunexa/lixa 0.1.6-alpha.2 → 0.1.6-alpha.3

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 CHANGED
@@ -28,36 +28,7 @@ A flexible, provider-agnostic OAuth 2.0 and OpenID Connect (OIDC) client library
28
28
 
29
29
  ## Architecture Overview
30
30
 
31
- ```mermaid
32
- graph TD
33
- User([User Client / Browser])
34
-
35
- subgraph Lixa ["Lixa Core Engine"]
36
- AuthNGuard["Primary AuthN Guard<br/>(Minimal Identity Scopes Only)"]
37
- SessionMgr["Session Handler & Unified Session"]
38
- AccountLinker["Account Linker<br/>(AUTO_LINK_BY_VERIFIED_EMAIL)"]
39
- ResourceConn["Resource Connection API<br/>(Post-Login AuthZ)"]
40
- end
41
-
42
- subgraph IdentityProviders ["Identity Providers (AuthN)"]
43
- GoogleAuth["Google / OIDC"]
44
- GitHubAuth["GitHub OAuth"]
45
- end
46
-
47
- subgraph ResourceProviders ["Resource APIs (AuthZ)"]
48
- GitHubAPI["GitHub API (repos, orgs)"]
49
- GoogleDriveAPI["Google Drive API"]
50
- end
51
-
52
- User -->|"1. Primary Login / Link Account"| AuthNGuard
53
- AuthNGuard -->|"Request Identity"| IdentityProviders
54
- IdentityProviders -->|"Tokens + UserInfo"| AccountLinker
55
- AccountLinker -->|"Unified Session (session.accounts)"| SessionMgr
56
-
57
- User -->|"2. Connect Resource API (Post-Login)"| ResourceConn
58
- ResourceConn -->|"Request Permissions (repo, drive)"| ResourceProviders
59
- ResourceProviders -->|"Resource Access Tokens"| SessionMgr
60
- ```
31
+ ![Architecture Overview](https://cdn.jsdelivr.net/npm/@vunexa/lixa/docs/images/architecture.svg)
61
32
 
62
33
  ---
63
34
 
@@ -371,10 +342,8 @@ export const lixa = new Lixa({
371
342
  ```json
372
343
  {
373
344
  "id": "e4a91f82c3b4a07f",
374
- "token": "ya29.a0ARW5m7...",
375
345
  "userId": "1049281048",
376
346
  "email": "alex.developer@example.com",
377
- "provider": "google",
378
347
  "accounts": {
379
348
  "google": {
380
349
  "provider": "google",
@@ -398,11 +367,6 @@ export const lixa = new Lixa({
398
367
  "scopes": ["repo", "read:org"],
399
368
  "connectedAt": 1771657300000
400
369
  }
401
- },
402
- "raw": {
403
- "access_token": "ya29.a0ARW5m7...",
404
- "token_type": "Bearer",
405
- "expires_in": 3599
406
370
  }
407
371
  }
408
372
  ```
@@ -513,10 +477,8 @@ export const lixa = new Lixa({
513
477
  "ttl": 1771743600,
514
478
  "sessionData": {
515
479
  "id": "e4a91f82c3b4a07f",
516
- "token": "ya29.a0ARW5m7...",
517
480
  "userId": "1049281048",
518
481
  "email": "alex.developer@example.com",
519
- "provider": "google",
520
482
  "accounts": {
521
483
  "google": {
522
484
  "provider": "google",
@@ -540,11 +502,6 @@ export const lixa = new Lixa({
540
502
  "scopes": ["repo", "read:org"],
541
503
  "connectedAt": 1771657300000
542
504
  }
543
- },
544
- "raw": {
545
- "access_token": "ya29.a0ARW5m7...",
546
- "token_type": "Bearer",
547
- "expires_in": 3599
548
505
  }
549
506
  }
550
507
  }
@@ -432,10 +432,8 @@ export const lixa = new Lixa({
432
432
  ```json
433
433
  {
434
434
  "id": "e4a91f82c3b4a07f",
435
- "token": "ya29.a0ARW5m7...",
436
435
  "userId": "1049281048",
437
436
  "email": "alex.developer@example.com",
438
- "provider": "google",
439
437
  "accounts": {
440
438
  "google": {
441
439
  "provider": "google",
@@ -459,11 +457,6 @@ export const lixa = new Lixa({
459
457
  "scopes": ["repo", "read:org"],
460
458
  "connectedAt": 1771657300000
461
459
  }
462
- },
463
- "raw": {
464
- "access_token": "ya29.a0ARW5m7...",
465
- "token_type": "Bearer",
466
- "expires_in": 3599
467
460
  }
468
461
  }
469
462
  ```
@@ -574,10 +567,8 @@ export const lixa = new Lixa({
574
567
  "ttl": 1771743600,
575
568
  "sessionData": {
576
569
  "id": "e4a91f82c3b4a07f",
577
- "token": "ya29.a0ARW5m7...",
578
570
  "userId": "1049281048",
579
571
  "email": "alex.developer@example.com",
580
- "provider": "google",
581
572
  "accounts": {
582
573
  "google": {
583
574
  "provider": "google",
@@ -601,11 +592,6 @@ export const lixa = new Lixa({
601
592
  "scopes": ["repo", "read:org"],
602
593
  "connectedAt": 1771657300000
603
594
  }
604
- },
605
- "raw": {
606
- "access_token": "ya29.a0ARW5m7...",
607
- "token_type": "Bearer",
608
- "expires_in": 3599
609
595
  }
610
596
  }
611
597
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunexa/lixa",
3
- "version": "0.1.6-alpha.2",
3
+ "version": "0.1.6-alpha.3",
4
4
  "description": "Lixa is a flexible, provider-agnostic OAuth and OpenID Connect (OIDC) client library that simplifies multi-provider authentication flows. It supports seamless integration with providers like Google and GitHub, offers extensible session management, and enables dynamic provider resolution based on callback URLs.",
5
5
  "keywords": [
6
6
  "oauth",