@medusajs/auth-emailpass 2.0.3-preview-20241108150148 → 2.0.3-snapshot-20241108154832

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,8 @@ export declare class EmailPassAuthService extends AbstractAuthModuleProvider {
13
13
  constructor({ logger }: InjectedDependencies, options: EmailPassAuthProviderOptions);
14
14
  protected hashPassword(password: string): Promise<string>;
15
15
  update(data: {
16
- email: string;
17
16
  password: string;
17
+ entity_id: string;
18
18
  }, authIdentityService: AuthIdentityProviderService): Promise<{
19
19
  success: boolean;
20
20
  error?: undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"emailpass.d.ts","sourceRoot":"","sources":["../../src/services/emailpass.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EAEtB,2BAA2B,EAC3B,4BAA4B,EAC5B,MAAM,EACP,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,0BAA0B,EAG3B,MAAM,2BAA2B,CAAA;AAGlC,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,UAAU,kBAAmB,SAAQ,4BAA4B;CAAG;AAEpE,qBAAa,oBAAqB,SAAQ,0BAA0B;IAClE,MAAM,CAAC,UAAU,SAAc;IAC/B,MAAM,CAAC,YAAY,SAAkC;IAErD,SAAS,CAAC,OAAO,EAAE,kBAAkB,CAAA;IACrC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAA;gBAGvB,EAAE,MAAM,EAAE,EAAE,oBAAoB,EAChC,OAAO,EAAE,4BAA4B;cAQvB,YAAY,CAAC,QAAQ,EAAE,MAAM;IAMvC,MAAM,CACV,IAAI,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EACzC,mBAAmB,EAAE,2BAA2B;;;;;;;;;;;;;cAmClC,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE;;;;KAAA;IAmBrE,YAAY,CAChB,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AE,2BAA2B,GAC/C,OAAO,CAAC,sBAAsB,CAAC;CA2CnC"}
@@ -19,11 +19,11 @@ class EmailPassAuthService extends utils_1.AbstractAuthModuleProvider {
19
19
  return passwordHash.toString("base64");
20
20
  }
21
21
  async update(data, authIdentityService) {
22
- const { email, password } = data ?? {};
23
- if (!email || !(0, utils_1.isString)(email)) {
22
+ const { password, entity_id } = data ?? {};
23
+ if (!entity_id) {
24
24
  return {
25
25
  success: false,
26
- error: `Cannot update ${this.provider} provider identity without email`,
26
+ error: `Cannot update ${this.provider} provider identity without entity_id`,
27
27
  };
28
28
  }
29
29
  if (!password || !(0, utils_1.isString)(password)) {
@@ -32,7 +32,7 @@ class EmailPassAuthService extends utils_1.AbstractAuthModuleProvider {
32
32
  let authIdentity;
33
33
  try {
34
34
  const passwordHash = await this.hashPassword(password);
35
- authIdentity = await authIdentityService.update(email, {
35
+ authIdentity = await authIdentityService.update(entity_id, {
36
36
  provider_metadata: {
37
37
  password: passwordHash,
38
38
  },
@@ -1 +1 @@
1
- {"version":3,"file":"emailpass.js","sourceRoot":"","sources":["../../src/services/emailpass.ts"],"names":[],"mappings":";;;;;;AAQA,qDAIkC;AAClC,4DAA+B;AAQ/B,MAAa,oBAAqB,SAAQ,kCAA0B;IAOlE,YACE,EAAE,MAAM,EAAwB,EAChC,OAAqC;QAErC,aAAa;QACb,KAAK,CAAC,GAAG,SAAS,CAAC,CAAA;QACnB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;IACvB,CAAC;IAES,KAAK,CAAC,YAAY,CAAC,QAAgB;QAC3C,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAA;QACtE,MAAM,YAAY,GAAG,MAAM,oBAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,UAAU,CAAC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AW,CAAA;AACxB,iCAAY,GAAG,+BAA+B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/auth-emailpass",
3
- "version": "2.0.3-preview-20241108150148",
3
+ "version": "2.0.3-snapshot-20241108154832",
4
4
  "description": "Email and password credential authentication provider for Medusa",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -26,7 +26,7 @@
26
26
  "watch": "tsc --watch"
27
27
  },
28
28
  "devDependencies": {
29
- "@medusajs/framework": "2.0.3-preview-20241108150148",
29
+ "@medusajs/framework": "2.0.3-snapshot-20241108154832",
30
30
  "@swc/core": "^1.7.28",
31
31
  "@swc/jest": "^0.2.36",
32
32
  "jest": "^29.7.0",
@@ -37,7 +37,7 @@
37
37
  "scrypt-kdf": "^2.0.1"
38
38
  },
39
39
  "peerDependencies": {
40
- "@medusajs/framework": "2.0.3-preview-20241108150148"
40
+ "@medusajs/framework": "2.0.3-snapshot-20241108154832"
41
41
  },
42
42
  "keywords": [
43
43
  "medusa-provider",