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