@nodetool-ai/auth 0.8.6 → 0.8.8

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
@@ -32,9 +32,11 @@ npm install @nodetool-ai/auth
32
32
  ```ts
33
33
  import { LocalAuthProvider, SupabaseAuthProvider } from "@nodetool-ai/auth";
34
34
 
35
- const provider = process.env.SUPABASE_JWT_SECRET
36
- ? new SupabaseAuthProvider({ supabaseJwtSecret: process.env.SUPABASE_JWT_SECRET })
37
- : new LocalAuthProvider();
35
+ const { SUPABASE_URL, SUPABASE_KEY } = process.env;
36
+ const provider =
37
+ SUPABASE_URL && SUPABASE_KEY
38
+ ? new SupabaseAuthProvider({ supabaseUrl: SUPABASE_URL, supabaseKey: SUPABASE_KEY })
39
+ : new LocalAuthProvider();
38
40
 
39
41
  const token = provider.extractTokenFromHeaders(request.headers);
40
42
  const result = await provider.verifyToken(token ?? "");
@@ -1 +1 @@
1
- 2026-10-18T07:13:32.052Z
1
+ 2026-10-25T16:17:12.629Z
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodetool-ai/auth",
3
- "version": "0.8.6",
3
+ "version": "0.8.8",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=22.0.0"