@quatrain/auth-supabase 1.0.5 → 1.1.5

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.
@@ -104,7 +104,11 @@ class SupabaseAuthAdapter extends auth_1.AbstractAuthAdapter {
104
104
  }
105
105
  setCustomUserClaims(id, claims) {
106
106
  return __awaiter(this, void 0, void 0, function* () {
107
- const { data, error } = yield this._client.auth.admin.updateUserById(id, claims);
107
+ auth_1.Auth.log(`Updating user ${id} with claims ${JSON.stringify(claims)}`);
108
+ const { data, error } = yield this._client.auth.admin.updateUserById(id, {
109
+ user_metadata: claims,
110
+ });
111
+ console.log(data, error);
108
112
  if (error) {
109
113
  throw new Error(error);
110
114
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quatrain/auth-supabase",
3
- "version": "1.0.5",
3
+ "version": "1.1.5",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -9,17 +9,14 @@
9
9
  "README.md"
10
10
  ],
11
11
  "author": "Quatrain Développement SAS <developers@quatrain.com>",
12
- "peerDependencies": {
13
- "@quatrain/core": "^1.0.0-beta2"
14
- },
15
12
  "dependencies": {
16
- "@quatrain/auth": "^1.0.0",
17
- "@supabase/supabase-js": "^2.42.4"
13
+ "@quatrain/auth": "^1.1.5",
14
+ "@supabase/supabase-js": "^2.45.1"
18
15
  },
19
16
  "devDependencies": {
20
- "@faker-js/faker": "^7.6.0",
21
17
  "@tsconfig/recommended": "^1.0.1",
22
18
  "@types/jest": "^27.0.3",
19
+ "@types/node": "^22.10.1",
23
20
  "jest": "^27.4.7",
24
21
  "jest-node-exports-resolver": "^1.1.6",
25
22
  "jest-serial-runner": "^1.2.1",
@@ -32,8 +29,9 @@
32
29
  "pretest": "tsc",
33
30
  "test": "clear && firebase emulators:exec 'jest -i --verbose'",
34
31
  "test-ci": "jest --runInBand",
35
- "build": "tsc --watch",
36
- "prepush": "tsc",
37
- "push": "yarn publish --access public"
32
+ "build": "tsc",
33
+ "wbuild": "tsc --watch",
34
+ "bump-to": "yarn version",
35
+ "publish": "yarn build && yarn npm publish --access public"
38
36
  }
39
- }
37
+ }