@quatrain/auth-supabase 1.2.11 → 1.2.12-beta.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.
@@ -14,6 +14,10 @@ export declare class SupabaseAuthAdapter extends AbstractAuthAdapter {
14
14
  */
15
15
  static factory(config: any): SupabaseAuthAdapter | null;
16
16
  constructor(params?: AuthParameters);
17
+ /**
18
+ * Returns the underlying Supabase Client instance.
19
+ */
20
+ get client(): any;
17
21
  /**
18
22
  * Register new user in authentication
19
23
  * @param user
@@ -39,6 +39,12 @@ class SupabaseAuthAdapter extends auth_1.AbstractAuthAdapter {
39
39
  });
40
40
  auth_1.Auth.info(`Created Supabase client for ${params.config.supabaseUrl}`);
41
41
  }
42
+ /**
43
+ * Returns the underlying Supabase Client instance.
44
+ */
45
+ get client() {
46
+ return this._client;
47
+ }
42
48
  /**
43
49
  * Register new user in authentication
44
50
  * @param user
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/auth-supabase",
3
- "version": "1.2.11",
3
+ "version": "1.2.12-beta.0",
4
4
  "license": "AGPL-3.0-only",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  "author": "Quatrain Développement SAS <developers@quatrain.com>",
21
21
  "dependencies": {
22
22
  "@quatrain/api": "^1.1.8",
23
- "@quatrain/auth": "^1.2.12",
23
+ "@quatrain/auth": "^1.2.13-beta.0",
24
24
  "@quatrain/backend": "^1.2.20",
25
25
  "@supabase/supabase-js": "^2.108.2"
26
26
  },
@@ -37,6 +37,7 @@
37
37
  "typescript": "^5.2.2"
38
38
  },
39
39
  "scripts": {
40
+ "test": "jest",
40
41
  "test-ci": "jest --runInBand",
41
42
  "build": "tsc",
42
43
  "wbuild": "tsc --watch",
@@ -44,5 +45,6 @@
44
45
  },
45
46
  "typedoc": {
46
47
  "entryPoint": "src/index.ts"
47
- }
48
+ },
49
+ "stableVersion": "1.2.11"
48
50
  }
@@ -44,6 +44,13 @@ export class SupabaseAuthAdapter extends AbstractAuthAdapter {
44
44
  Auth.info(`Created Supabase client for ${params.config.supabaseUrl}`)
45
45
  }
46
46
 
47
+ /**
48
+ * Returns the underlying Supabase Client instance.
49
+ */
50
+ public get client(): any {
51
+ return this._client
52
+ }
53
+
47
54
  /**
48
55
  * Register new user in authentication
49
56
  * @param user