@jskit-ai/auth-provider-supabase-core 0.2.41 → 0.2.42
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
|
+
- `verifySecondFactorOf` answers `AUTH_OPERATION_UNSUPPORTED`, as the other second-factor operations do.
|
|
5
6
|
- **Breaking:** the resolved configuration names whether the app runs in staging or production `isStagingOrProduction`, in place of `isDeployed`.
|
|
6
7
|
- The email change operations (`requestEmailChange`, `requestEmailChangeForUser`, `confirmEmailChange`) answer `AUTH_OPERATION_UNSUPPORTED`, and `features.emailChange` is false: the email is the identity provider's.
|
|
7
8
|
- **Breaking:** staging and production (`APP_ENV`), not `NODE_ENV=production`, use secure `__Host-` session cookies and refuse development shortcuts; the config's `isProduction` is now `isDeployed`.
|
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.42",
|
|
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.39",
|
|
64
|
+
"@jskit-ai/kernel": "0.2.34"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -144,6 +144,7 @@ function createSupabaseAuthService({ config, profiles }) {
|
|
|
144
144
|
startSecondFactorSetup: unsupported("startSecondFactorSetup"),
|
|
145
145
|
confirmSecondFactorSetup: unsupported("confirmSecondFactorSetup"),
|
|
146
146
|
verifySecondFactor: unsupported("verifySecondFactor"),
|
|
147
|
+
verifySecondFactorOf: unsupported("verifySecondFactorOf"),
|
|
147
148
|
replaceSecondFactorRecoveryCodes: unsupported("replaceSecondFactorRecoveryCodes"),
|
|
148
149
|
removeSecondFactor: unsupported("removeSecondFactor"),
|
|
149
150
|
listSecondFactors: unsupported("listSecondFactors"),
|
|
@@ -67,6 +67,10 @@ test("AuthSupabaseProvider exposes a configured provider-owned auth service", as
|
|
|
67
67
|
status: 501,
|
|
68
68
|
code: "AUTH_OPERATION_UNSUPPORTED"
|
|
69
69
|
});
|
|
70
|
+
assert.throws(() => authService.verifySecondFactorOf({ userId: "usr_1", proof: { code: "123456" } }), {
|
|
71
|
+
status: 501,
|
|
72
|
+
code: "AUTH_OPERATION_UNSUPPORTED"
|
|
73
|
+
});
|
|
70
74
|
assert.equal(authService.getCapabilities().features.emailChange, false);
|
|
71
75
|
assert.throws(() => authService.requestEmailChangeForUser({ userId: "usr_1", email: "new@example.com" }), {
|
|
72
76
|
status: 501,
|