@howone/sdk 0.1.12 → 0.1.14
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/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.mjs
CHANGED
|
@@ -254,7 +254,7 @@ var FloatingButton = ({
|
|
|
254
254
|
// src/services/unified-oauth.ts
|
|
255
255
|
var UnifiedAuthService = class {
|
|
256
256
|
constructor() {
|
|
257
|
-
this.API_BASE_URL = "
|
|
257
|
+
this.API_BASE_URL = "http://localhost:3000";
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
260
|
* 初始化 Google 登录流程
|
|
@@ -330,7 +330,7 @@ var UnifiedAuthService = class {
|
|
|
330
330
|
const messageHandler = (event) => {
|
|
331
331
|
const validOrigins = [
|
|
332
332
|
window.location.origin,
|
|
333
|
-
"
|
|
333
|
+
"http://localhost:3000"
|
|
334
334
|
];
|
|
335
335
|
const isValidOrigin = validOrigins.some(
|
|
336
336
|
(origin) => event.origin === origin || event.origin.includes("localhost") || event.origin.includes("127.0.0.1") || event.origin.includes("fly.dev")
|
|
@@ -993,7 +993,7 @@ function setupClearUrlTokenListener(opts) {
|
|
|
993
993
|
|
|
994
994
|
// src/services/index.ts
|
|
995
995
|
var request = new request_default({
|
|
996
|
-
baseURL: "
|
|
996
|
+
baseURL: "http://localhost:3000/api",
|
|
997
997
|
timeout: 6e4,
|
|
998
998
|
interceptors: {
|
|
999
999
|
requestInterceptor: (config) => {
|