@tern-secure/backend 1.2.0-canary.v20251202172616 → 1.2.0-canary.v20251202183844

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.
@@ -4,8 +4,11 @@ type ResetPasswordEmailParams = {
4
4
  email: string;
5
5
  requestType: 'PASSWORD_RESET';
6
6
  };
7
+ type opts = {
8
+ appCheckToken?: string;
9
+ };
7
10
  export declare class SignInApi extends AbstractAPI {
8
- resetPasswordEmail(apiKey: string, params: ResetPasswordEmailParams): Promise<ResetPasswordEmail>;
11
+ resetPasswordEmail(apiKey: string, params: ResetPasswordEmailParams, options?: opts): Promise<ResetPasswordEmail>;
9
12
  }
10
13
  export {};
11
14
  //# sourceMappingURL=SignInApi.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SignInApi.d.ts","sourceRoot":"","sources":["../../../src/fireRestApi/endpoints/SignInApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,qBAAa,SAAU,SAAQ,WAAW;IACzB,kBAAkB,CAC3B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,wBAAwB,GACjC,OAAO,CAAC,kBAAkB,CAAC;CAsBjC"}
1
+ {"version":3,"file":"SignInApi.d.ts","sourceRoot":"","sources":["../../../src/fireRestApi/endpoints/SignInApi.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,KAAK,wBAAwB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF,KAAK,IAAI,GAAG;IACR,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAA;AAED,qBAAa,SAAU,SAAQ,WAAW;IACzB,kBAAkB,CAC3B,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,IAAI,GACf,OAAO,CAAC,kBAAkB,CAAC;CA2BjC"}
package/dist/index.js CHANGED
@@ -1088,15 +1088,20 @@ var PasswordApi = class extends AbstractAPI {
1088
1088
 
1089
1089
  // src/fireRestApi/endpoints/SignInApi.ts
1090
1090
  var SignInApi = class extends AbstractAPI {
1091
- async resetPasswordEmail(apiKey, params) {
1091
+ async resetPasswordEmail(apiKey, params, options) {
1092
1092
  try {
1093
1093
  this.requireApiKey(apiKey);
1094
+ const headers = {};
1095
+ if (options?.appCheckToken) {
1096
+ headers["X-Firebase-AppCheck"] = options.appCheckToken;
1097
+ }
1094
1098
  const { ...restParams } = params;
1095
1099
  const response = await this.request({
1096
1100
  endpoint: "sendOobCode",
1097
1101
  method: "POST",
1098
1102
  apiKey,
1099
- bodyParams: restParams
1103
+ bodyParams: restParams,
1104
+ headerParams: headers
1100
1105
  });
1101
1106
  if (response.errors) {
1102
1107
  const errorMessage = response.errors[0]?.message || "Failed to send reset password email";