@jskit-ai/auth-provider-supabase-core 0.2.10 → 0.2.11
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
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
- `confirmRegistration` answers `AUTH_OPERATION_UNSUPPORTED`: Supabase confirms an email through its own link.
|
|
6
|
+
|
|
3
7
|
## 0.2.0 - 2026-10-29
|
|
4
8
|
|
|
5
9
|
- Translation ready: every user-visible text is a message key with its English in `locales/en.json`, so an app translates it by supplying translation files only. With no translations, texts and behaviour are unchanged. See the guide "Translating a JSKIT app".
|
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.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test --test-concurrency=1"
|
|
@@ -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.9",
|
|
64
|
+
"@jskit-ai/kernel": "0.2.9"
|
|
65
65
|
}
|
|
66
66
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { normalizeAuthCapabilities } from "@jskit-ai/auth-core/shared/authCapabilities";
|
|
2
2
|
import { ensureDevAuthExchangeAvailable } from "@jskit-ai/auth-core/server/devAuth";
|
|
3
|
+
import { throwUnsupportedAuthOperation } from "@jskit-ai/auth-core/server/unsupportedOperation";
|
|
3
4
|
import { createSupabaseAccountFlows } from "./accountFlows.js";
|
|
4
5
|
import { requireAuthenticatedProfile } from "./authenticatedProfile.js";
|
|
5
6
|
import { createDevAuthSession, resolveDevAuthProfile } from "./devAuthBootstrap.js";
|
|
@@ -82,6 +83,11 @@ function createSupabaseAuthService({ config, profiles }) {
|
|
|
82
83
|
return config.oauthCatalog;
|
|
83
84
|
}
|
|
84
85
|
|
|
86
|
+
// Supabase confirms an email through its own link, which returns through oauthComplete.
|
|
87
|
+
function confirmRegistration() {
|
|
88
|
+
throwUnsupportedAuthOperation("confirmRegistration");
|
|
89
|
+
}
|
|
90
|
+
|
|
85
91
|
function isDevAuthBootstrapEnabled() {
|
|
86
92
|
return config.devAuth.enabled === true;
|
|
87
93
|
}
|
|
@@ -104,6 +110,7 @@ function createSupabaseAuthService({ config, profiles }) {
|
|
|
104
110
|
getCapabilities,
|
|
105
111
|
register: profileMirror.withActorResult(accountFlows.register),
|
|
106
112
|
resendRegisterConfirmation: accountFlows.resendRegisterConfirmation,
|
|
113
|
+
confirmRegistration,
|
|
107
114
|
login: profileMirror.withActorResult(accountFlows.login),
|
|
108
115
|
requestOtpLogin: accountFlows.requestOtpLogin,
|
|
109
116
|
verifyOtpLogin: profileMirror.withActorResult(accountFlows.verifyOtpLogin),
|