@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.js
CHANGED
|
@@ -55114,7 +55114,7 @@ function SylphxProviderInner({
|
|
|
55114
55114
|
}, [authState.isSignedIn, authPrefix]);
|
|
55115
55115
|
const resetPassword = (0, import_react109.useCallback)(
|
|
55116
55116
|
async (options) => {
|
|
55117
|
-
const response = await fetch(`${platformUrl}/
|
|
55117
|
+
const response = await fetch(`${platformUrl}/v1/auth/reset-password`, {
|
|
55118
55118
|
method: "POST",
|
|
55119
55119
|
headers: { "Content-Type": "application/json" },
|
|
55120
55120
|
body: JSON.stringify({
|
|
@@ -55132,7 +55132,7 @@ function SylphxProviderInner({
|
|
|
55132
55132
|
);
|
|
55133
55133
|
const verifyEmail = (0, import_react109.useCallback)(
|
|
55134
55134
|
async (options) => {
|
|
55135
|
-
const response = await fetch(`${platformUrl}/
|
|
55135
|
+
const response = await fetch(`${platformUrl}/v1/auth/verify-email`, {
|
|
55136
55136
|
method: "POST",
|
|
55137
55137
|
headers: { "Content-Type": "application/json" },
|
|
55138
55138
|
body: JSON.stringify({
|
|
@@ -55149,7 +55149,7 @@ function SylphxProviderInner({
|
|
|
55149
55149
|
);
|
|
55150
55150
|
const resendVerificationEmail = (0, import_react109.useCallback)(
|
|
55151
55151
|
async (options) => {
|
|
55152
|
-
const response = await fetch(`${platformUrl}/
|
|
55152
|
+
const response = await fetch(`${platformUrl}/v1/auth/resend-verification`, {
|
|
55153
55153
|
method: "POST",
|
|
55154
55154
|
headers: { "Content-Type": "application/json" },
|
|
55155
55155
|
body: JSON.stringify({
|
|
@@ -55166,7 +55166,7 @@ function SylphxProviderInner({
|
|
|
55166
55166
|
);
|
|
55167
55167
|
const forgotPassword = (0, import_react109.useCallback)(
|
|
55168
55168
|
async (options) => {
|
|
55169
|
-
const response = await fetch(`${platformUrl}/
|
|
55169
|
+
const response = await fetch(`${platformUrl}/v1/auth/forgot-password`, {
|
|
55170
55170
|
method: "POST",
|
|
55171
55171
|
headers: { "Content-Type": "application/json" },
|
|
55172
55172
|
body: JSON.stringify({
|
|
@@ -56054,7 +56054,7 @@ function SylphxProviderInner({
|
|
|
56054
56054
|
});
|
|
56055
56055
|
},
|
|
56056
56056
|
verifyEmail: async (token) => {
|
|
56057
|
-
const response = await fetch(`${platformUrl}/
|
|
56057
|
+
const response = await fetch(`${platformUrl}/v1/auth/verify-email`, {
|
|
56058
56058
|
method: "POST",
|
|
56059
56059
|
headers: { "Content-Type": "application/json" },
|
|
56060
56060
|
body: JSON.stringify({ token, client_id: appId || "" })
|
|
@@ -56084,8 +56084,8 @@ function SylphxProviderInner({
|
|
|
56084
56084
|
},
|
|
56085
56085
|
getOAuthProviders: async () => {
|
|
56086
56086
|
if (!appId) return { providers: [] };
|
|
56087
|
-
const response = await fetch(`${platformUrl}/
|
|
56088
|
-
headers: { "
|
|
56087
|
+
const response = await fetch(`${platformUrl}/v1/auth/oauth-providers`, {
|
|
56088
|
+
headers: { "x-app-secret": appId }
|
|
56089
56089
|
});
|
|
56090
56090
|
if (!response.ok) {
|
|
56091
56091
|
return { providers: [] };
|