@passkeyme/auth 2.0.0 → 2.0.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/dist/index.umd.js CHANGED
@@ -325,7 +325,7 @@
325
325
  * Get authentication configuration for the app
326
326
  */
327
327
  async getConfig() {
328
- const backendConfig = await this.request(`${this.baseUrl}/api/auth/${this.appId}/config`);
328
+ const backendConfig = await this.request(`/api/auth/${this.appId}/config`);
329
329
  // Map backend response to SDK format
330
330
  return {
331
331
  appId: backendConfig.app_id,
@@ -401,7 +401,7 @@
401
401
  token: token,
402
402
  app_id: this.appId,
403
403
  });
404
- const response = (await this.request(`${this.baseUrl}/api/auth/verify-token?${params.toString()}`, {
404
+ const response = (await this.request(`/api/auth/verify-token?${params.toString()}`, {
405
405
  method: "GET",
406
406
  }));
407
407
  if (!response.valid) {