@jskit-ai/auth-provider-supabase-core 0.2.33 → 0.2.34
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
|
+
- The email change operations (`requestEmailChange`, `requestEmailChangeForUser`, `confirmEmailChange`) answer `AUTH_OPERATION_UNSUPPORTED`, and `features.emailChange` is false: the email is the identity provider's.
|
|
5
6
|
- **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`.
|
|
6
7
|
- The second-factor operations (`getSecondFactorStatus`, `startSecondFactorSetup`, `confirmSecondFactorSetup`, `verifySecondFactor`, `replaceSecondFactorRecoveryCodes`, `removeSecondFactor`, `listSecondFactors`, `resetSecondFactor`) answer `AUTH_OPERATION_UNSUPPORTED`, and `features.secondFactor` is false.
|
|
7
8
|
- Reading the signed-in user for the security screen and account changes asks Supabase for a valid access token's user once instead of twice; it asks again only for the new token a session refresh issued.
|
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.34",
|
|
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.
|
|
63
|
+
"@jskit-ai/auth-core": "0.2.31",
|
|
64
64
|
"@jskit-ai/kernel": "0.2.27"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -147,7 +147,10 @@ function createSupabaseAuthService({ config, profiles }) {
|
|
|
147
147
|
replaceSecondFactorRecoveryCodes: unsupported("replaceSecondFactorRecoveryCodes"),
|
|
148
148
|
removeSecondFactor: unsupported("removeSecondFactor"),
|
|
149
149
|
listSecondFactors: unsupported("listSecondFactors"),
|
|
150
|
-
resetSecondFactor: unsupported("resetSecondFactor")
|
|
150
|
+
resetSecondFactor: unsupported("resetSecondFactor"),
|
|
151
|
+
requestEmailChange: unsupported("requestEmailChange"),
|
|
152
|
+
requestEmailChangeForUser: unsupported("requestEmailChangeForUser"),
|
|
153
|
+
confirmEmailChange: unsupported("confirmEmailChange")
|
|
151
154
|
});
|
|
152
155
|
}
|
|
153
156
|
|
|
@@ -67,6 +67,11 @@ test("AuthSupabaseProvider exposes a configured provider-owned auth service", as
|
|
|
67
67
|
status: 501,
|
|
68
68
|
code: "AUTH_OPERATION_UNSUPPORTED"
|
|
69
69
|
});
|
|
70
|
+
assert.equal(authService.getCapabilities().features.emailChange, false);
|
|
71
|
+
assert.throws(() => authService.requestEmailChangeForUser({ userId: "usr_1", email: "new@example.com" }), {
|
|
72
|
+
status: 501,
|
|
73
|
+
code: "AUTH_OPERATION_UNSUPPORTED"
|
|
74
|
+
});
|
|
70
75
|
await runtime.shutdown();
|
|
71
76
|
});
|
|
72
77
|
|