@edcalderon/auth 1.0.1 β 1.0.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/CHANGELOG.md +14 -0
- package/README.md +13 -20
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.3] - 2026-03-01
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- π Updated import from `@ed/auth` (old internal alias) to `@edcalderon/auth` in dashboard consumer
|
|
8
|
+
- π Added `update-readme` script β uses `versioning update-readme` to keep README in sync with CHANGELOG
|
|
9
|
+
- π Versioning package used as dev dependency for README maintenance
|
|
10
|
+
|
|
11
|
+
## [1.0.2] - 2026-03-01
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
|
|
15
|
+
- π Updated repository link to point directly to the auth package tree on GitHub
|
|
16
|
+
|
|
3
17
|
## [1.0.1] - 2026-03-01
|
|
4
18
|
|
|
5
19
|
### Fixed
|
package/README.md
CHANGED
|
@@ -8,15 +8,13 @@ A universal, **provider-agnostic** authentication orchestration package for Reac
|
|
|
8
8
|
|
|
9
9
|
---
|
|
10
10
|
|
|
11
|
-
## π Latest Changes (v1.0.
|
|
11
|
+
## π Latest Changes (v1.0.3)
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### Fixed
|
|
14
14
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
17
|
-
-
|
|
18
|
-
- π‘οΈ Unified `User` type across all providers
|
|
19
|
-
- π Session token access via `getSessionToken()`
|
|
15
|
+
- π Updated import from `@ed/auth` (old internal alias) to `@edcalderon/auth` in dashboard consumer
|
|
16
|
+
- π Added `update-readme` script β uses `versioning update-readme` to keep README in sync with CHANGELOG
|
|
17
|
+
- π Versioning package used as dev dependency for README maintenance
|
|
20
18
|
|
|
21
19
|
For full version history, see [CHANGELOG.md](./CHANGELOG.md) and [GitHub releases](https://github.com/edcalderon/my-second-brain/releases)
|
|
22
20
|
|
|
@@ -30,20 +28,15 @@ The package follows a **Single Source of Truth** model with a **Federated OAuth
|
|
|
30
28
|
- **OAuth / Identity Providers**: External services (Firebase, Directus, native Google OAuth, Auth0, etc.) handle frontend login bridges or federated SSO flows.
|
|
31
29
|
- **The Orchestrator (`@edcalderon/auth`)**: A thin bridge layer that exposes generic interfaces (`User`, `AuthClient`). Applications consume a unified context without coupling to any specific vendor.
|
|
32
30
|
|
|
33
|
-
|
|
34
|
-
graph TD
|
|
35
|
-
UI[Frontend Applications] -->|useAuth| EdAuth["@edcalderon/auth"]
|
|
36
|
-
EdAuth -->|Direct Session| Supabase(Supabase)
|
|
37
|
-
EdAuth -->|Federated Bridge| Firebase(Firebase OAuth)
|
|
38
|
-
EdAuth -->|Custom Adapter| Directus(Directus SSO)
|
|
39
|
-
EdAuth -->|Custom Adapter| Custom(Auth0 / Custom)
|
|
40
|
-
|
|
41
|
-
Firebase -->|Sync Session| Supabase
|
|
42
|
-
Directus -->|Sync Session| Supabase
|
|
43
|
-
|
|
44
|
-
Supabase -->|Roles & Scopes| DB[(PostgreSQL)]
|
|
45
|
-
```
|
|
31
|
+
**Architecture Flow:**
|
|
46
32
|
|
|
33
|
+
1. **Frontend Applications** `=>` consume **`@edcalderon/auth`** via `useAuth()`
|
|
34
|
+
2. **`@edcalderon/auth`** orchestrates the adapters:
|
|
35
|
+
- `=>` **Supabase Adapter** (Direct Session)
|
|
36
|
+
- `=>` **Hybrid Bridge** (Firebase OAuth + Supabase Session)
|
|
37
|
+
- `=>` **Custom Adapters** (e.g. Directus SSO, Auth0)
|
|
38
|
+
3. **Identity Providers** (Firebase/Directus) `=>` Sync Session to **Supabase**
|
|
39
|
+
4. **Supabase** `=>` Manages Roles & Scopes in the **PostgreSQL** Database
|
|
47
40
|
---
|
|
48
41
|
|
|
49
42
|
## Features
|
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edcalderon/auth",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A universal, provider-agnostic authentication orchestration package with extensible adapters for Supabase, Firebase, Directus, and custom OAuth providers",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "tsc",
|
|
9
9
|
"dev": "tsc --watch",
|
|
10
|
-
"prepublishOnly": "npm run build"
|
|
10
|
+
"prepublishOnly": "npm run build",
|
|
11
|
+
"update-readme": "versioning update-readme"
|
|
11
12
|
},
|
|
12
13
|
"keywords": [
|
|
13
14
|
"auth",
|
|
@@ -28,8 +29,7 @@
|
|
|
28
29
|
"homepage": "https://github.com/edcalderon/my-second-brain/tree/main/packages/auth",
|
|
29
30
|
"repository": {
|
|
30
31
|
"type": "git",
|
|
31
|
-
"url": "https://github.com/edcalderon/my-second-brain
|
|
32
|
-
"directory": "packages/auth"
|
|
32
|
+
"url": "https://github.com/edcalderon/my-second-brain/tree/main/packages/auth"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@supabase/supabase-js": "^2.0.0",
|