@jskit-ai/auth-core 0.1.181 → 0.1.182
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/auth-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.182",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -135,6 +135,6 @@
|
|
|
135
135
|
}
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {
|
|
138
|
-
"@jskit-ai/kernel": "0.1.
|
|
138
|
+
"@jskit-ai/kernel": "0.1.184"
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { normalizeOAuthProviderId } from "./oauthProviders.js";
|
|
2
2
|
|
|
3
|
-
const AUTH_PASSWORD_RECOVERY_DELIVERIES = Object.freeze(["
|
|
3
|
+
const AUTH_PASSWORD_RECOVERY_DELIVERIES = Object.freeze(["email", "dev-log", "dev-response", "disabled"]);
|
|
4
4
|
|
|
5
5
|
const AUTH_OPTIONAL_OPERATION_FEATURES = Object.freeze({
|
|
6
6
|
register: "password.register",
|
|
@@ -34,7 +34,7 @@ test("normalizeAuthCapabilities returns one provider-neutral feature shape", ()
|
|
|
34
34
|
passwordRecovery: {
|
|
35
35
|
request: true,
|
|
36
36
|
complete: true,
|
|
37
|
-
delivery: "
|
|
37
|
+
delivery: "email"
|
|
38
38
|
},
|
|
39
39
|
oauthLogin: {
|
|
40
40
|
enabled: true,
|
|
@@ -56,7 +56,7 @@ test("normalizeAuthCapabilities returns one provider-neutral feature shape", ()
|
|
|
56
56
|
assert.equal(capabilities.provider.label, "Local");
|
|
57
57
|
assert.equal(capabilities.features.password.login, true);
|
|
58
58
|
assert.equal(capabilities.features.password.methodToggle, false);
|
|
59
|
-
assert.equal(capabilities.features.passwordRecovery.delivery, "
|
|
59
|
+
assert.equal(capabilities.features.passwordRecovery.delivery, "email");
|
|
60
60
|
assert.deepEqual(capabilities.features.oauthLogin.providers, [
|
|
61
61
|
{ id: "google", label: "Google" },
|
|
62
62
|
{ id: "github", label: "github" }
|