@jskit-ai/auth-provider-supabase-core 0.2.42 → 0.2.43
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.
|
|
3
|
+
"version": "0.2.43",
|
|
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.
|
|
64
|
-
"@jskit-ai/kernel": "0.2.
|
|
63
|
+
"@jskit-ai/auth-core": "0.2.40",
|
|
64
|
+
"@jskit-ai/kernel": "0.2.35"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -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,
|