@jskit-ai/auth-provider-supabase-core 0.2.42 → 0.2.44

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 CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - `accountStateOf` answers `AUTH_OPERATION_UNSUPPORTED`, as the other second-factor operations do.
5
6
  - `verifySecondFactorOf` answers `AUTH_OPERATION_UNSUPPORTED`, as the other second-factor operations do.
6
7
  - **Breaking:** the resolved configuration names whether the app runs in staging or production `isStagingOrProduction`, in place of `isDeployed`.
7
8
  - The email change operations (`requestEmailChange`, `requestEmailChangeForUser`, `confirmEmailChange`) answer `AUTH_OPERATION_UNSUPPORTED`, and `features.emailChange` is false: the email is the identity provider's.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/auth-provider-supabase-core",
3
- "version": "0.2.42",
3
+ "version": "0.2.44",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "jskit test"
@@ -60,7 +60,7 @@
60
60
  }
61
61
  },
62
62
  "peerDependencies": {
63
- "@jskit-ai/auth-core": "0.2.39",
64
- "@jskit-ai/kernel": "0.2.34"
63
+ "@jskit-ai/auth-core": "0.2.41",
64
+ "@jskit-ai/kernel": "0.2.36"
65
65
  }
66
66
  }
@@ -2,6 +2,6 @@
2
2
  "private": true,
3
3
  "type": "module",
4
4
  "dependencies": {
5
- "@jskit-ai/auth-provider-supabase-core": "0.2.42"
5
+ "@jskit-ai/auth-provider-supabase-core": "0.2.44"
6
6
  }
7
7
  }
@@ -145,6 +145,7 @@ function createSupabaseAuthService({ config, profiles }) {
145
145
  confirmSecondFactorSetup: unsupported("confirmSecondFactorSetup"),
146
146
  verifySecondFactor: unsupported("verifySecondFactor"),
147
147
  verifySecondFactorOf: unsupported("verifySecondFactorOf"),
148
+ accountStateOf: unsupported("accountStateOf"),
148
149
  replaceSecondFactorRecoveryCodes: unsupported("replaceSecondFactorRecoveryCodes"),
149
150
  removeSecondFactor: unsupported("removeSecondFactor"),
150
151
  listSecondFactors: unsupported("listSecondFactors"),
@@ -71,6 +71,7 @@ test("AuthSupabaseProvider exposes a configured provider-owned auth service", as
71
71
  status: 501,
72
72
  code: "AUTH_OPERATION_UNSUPPORTED"
73
73
  });
74
+ assert.throws(() => authService.accountStateOf({ userId: "usr_1" }), { status: 501, code: "AUTH_OPERATION_UNSUPPORTED" });
74
75
  assert.equal(authService.getCapabilities().features.emailChange, false);
75
76
  assert.throws(() => authService.requestEmailChangeForUser({ userId: "usr_1", email: "new@example.com" }), {
76
77
  status: 501,