@sylphx/sdk 0.7.0 → 0.8.0-rc.1
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/README.md +25 -0
- package/dist/health/index.js +521 -0
- package/dist/health/index.js.map +1 -0
- package/dist/health/index.mjs +485 -0
- package/dist/health/index.mjs.map +1 -0
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/nextjs/index.js.map +1 -1
- package/dist/nextjs/index.mjs.map +1 -1
- package/dist/react/index.js +7 -7
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +7 -7
- package/dist/react/index.mjs.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +2 -2
- package/dist/server/index.mjs.map +1 -1
- package/package.json +12 -2
package/dist/react/index.mjs
CHANGED
|
@@ -54788,7 +54788,7 @@ function SylphxProviderInner({
|
|
|
54788
54788
|
}, [authState.isSignedIn, authPrefix]);
|
|
54789
54789
|
const resetPassword = useCallback66(
|
|
54790
54790
|
async (options) => {
|
|
54791
|
-
const response = await fetch(`${platformUrl}/
|
|
54791
|
+
const response = await fetch(`${platformUrl}/v1/auth/reset-password`, {
|
|
54792
54792
|
method: "POST",
|
|
54793
54793
|
headers: { "Content-Type": "application/json" },
|
|
54794
54794
|
body: JSON.stringify({
|
|
@@ -54806,7 +54806,7 @@ function SylphxProviderInner({
|
|
|
54806
54806
|
);
|
|
54807
54807
|
const verifyEmail = useCallback66(
|
|
54808
54808
|
async (options) => {
|
|
54809
|
-
const response = await fetch(`${platformUrl}/
|
|
54809
|
+
const response = await fetch(`${platformUrl}/v1/auth/verify-email`, {
|
|
54810
54810
|
method: "POST",
|
|
54811
54811
|
headers: { "Content-Type": "application/json" },
|
|
54812
54812
|
body: JSON.stringify({
|
|
@@ -54823,7 +54823,7 @@ function SylphxProviderInner({
|
|
|
54823
54823
|
);
|
|
54824
54824
|
const resendVerificationEmail = useCallback66(
|
|
54825
54825
|
async (options) => {
|
|
54826
|
-
const response = await fetch(`${platformUrl}/
|
|
54826
|
+
const response = await fetch(`${platformUrl}/v1/auth/resend-verification`, {
|
|
54827
54827
|
method: "POST",
|
|
54828
54828
|
headers: { "Content-Type": "application/json" },
|
|
54829
54829
|
body: JSON.stringify({
|
|
@@ -54840,7 +54840,7 @@ function SylphxProviderInner({
|
|
|
54840
54840
|
);
|
|
54841
54841
|
const forgotPassword = useCallback66(
|
|
54842
54842
|
async (options) => {
|
|
54843
|
-
const response = await fetch(`${platformUrl}/
|
|
54843
|
+
const response = await fetch(`${platformUrl}/v1/auth/forgot-password`, {
|
|
54844
54844
|
method: "POST",
|
|
54845
54845
|
headers: { "Content-Type": "application/json" },
|
|
54846
54846
|
body: JSON.stringify({
|
|
@@ -55728,7 +55728,7 @@ function SylphxProviderInner({
|
|
|
55728
55728
|
});
|
|
55729
55729
|
},
|
|
55730
55730
|
verifyEmail: async (token) => {
|
|
55731
|
-
const response = await fetch(`${platformUrl}/
|
|
55731
|
+
const response = await fetch(`${platformUrl}/v1/auth/verify-email`, {
|
|
55732
55732
|
method: "POST",
|
|
55733
55733
|
headers: { "Content-Type": "application/json" },
|
|
55734
55734
|
body: JSON.stringify({ token, client_id: appId || "" })
|
|
@@ -55758,8 +55758,8 @@ function SylphxProviderInner({
|
|
|
55758
55758
|
},
|
|
55759
55759
|
getOAuthProviders: async () => {
|
|
55760
55760
|
if (!appId) return { providers: [] };
|
|
55761
|
-
const response = await fetch(`${platformUrl}/
|
|
55762
|
-
headers: { "
|
|
55761
|
+
const response = await fetch(`${platformUrl}/v1/auth/oauth-providers`, {
|
|
55762
|
+
headers: { "x-app-secret": appId }
|
|
55763
55763
|
});
|
|
55764
55764
|
if (!response.ok) {
|
|
55765
55765
|
return { providers: [] };
|