@medusajs/auth-emailpass 0.0.2-snapshot-20241018065049 → 0.0.2-snapshot-20241018092943
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,8 @@ type InjectedDependencies = {
|
|
6
6
|
interface LocalServiceConfig extends EmailPassAuthProviderOptions {
|
7
7
|
}
|
8
8
|
export declare class EmailPassAuthService extends AbstractAuthModuleProvider {
|
9
|
+
static identifier: string;
|
10
|
+
static DISPLAY_NAME: string;
|
9
11
|
protected config_: LocalServiceConfig;
|
10
12
|
protected logger_: Logger;
|
11
13
|
constructor({ logger }: InjectedDependencies, options: EmailPassAuthProviderOptions);
|
@@ -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,SAAS,CAAC,OAAO,EAAE,kBAAkB,CAAA;IACrC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAA;gBAGvB,EAAE,MAAM,EAAE,EAAE,oBAAoB,EAChC,OAAO,EAAE,4BAA4B;
|
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,QAAQ,EAAE,mBAAmB,EAC7B,mBAAmB,EAAE,2BAA2B,GAC/C,OAAO,CAAC,sBAAsB,CAAC;IA+D5B,QAAQ,CACZ,QAAQ,EAAE,mBAAmB,EAC7B,mBAAmB,EAAE,2BAA2B,GAC/C,OAAO,CAAC,sBAAsB,CAAC;CA2CnC"}
|
@@ -8,7 +8,8 @@ const utils_1 = require("@medusajs/framework/utils");
|
|
8
8
|
const scrypt_kdf_1 = __importDefault(require("scrypt-kdf"));
|
9
9
|
class EmailPassAuthService extends utils_1.AbstractAuthModuleProvider {
|
10
10
|
constructor({ logger }, options) {
|
11
|
-
|
11
|
+
// @ts-ignore
|
12
|
+
super(...arguments);
|
12
13
|
this.config_ = options;
|
13
14
|
this.logger_ = logger;
|
14
15
|
}
|
@@ -147,4 +148,6 @@ class EmailPassAuthService extends utils_1.AbstractAuthModuleProvider {
|
|
147
148
|
}
|
148
149
|
}
|
149
150
|
exports.EmailPassAuthService = EmailPassAuthService;
|
151
|
+
EmailPassAuthService.identifier = "emailpass";
|
152
|
+
EmailPassAuthService.DISPLAY_NAME = "Email/Password Authentication";
|
150
153
|
//# sourceMappingURL=emailpass.js.map
|
@@ -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;
|
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,CAAA;QAC3D,OAAO,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAA;IACxC,CAAC;IAED,KAAK,CAAC,MAAM,CACV,IAAyC,EACzC,mBAAgD;QAEhD,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,IAAI,EAAE,CAAA;QAEtC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAA,gBAAQ,EAAC,KAAK,CAAC,EAAE,CAAC;YAC/B,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,iBAAiB,IAAI,CAAC,QAAQ,k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,CAAC,CAAA;YAEF,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,oCAAoC;aAC5C,CAAA;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,KAAK,CAAC,IAAI,KAAK,mBAAW,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;gBAC/C,MAAM,mBAAmB,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC;oBACxD,KAAK;oBACL,QAAQ;oBACR,mBAAmB;iBACpB,CAAC,CAAA;gBAEF,OAAO;oBACL,OAAO,EAAE,IAAI;oBACb,YAAY,EAAE,mBAAmB;iBAClC,CAAA;YACH,CAAC;YAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,CAAA;QACjD,CAAC;IACH,CAAC;;AA9LH,oDA+LC;AA9LQ,+BAAU,GAAG,WAAW,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": "0.0.2-snapshot-
|
3
|
+
"version": "0.0.2-snapshot-20241018092943",
|
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": "0.0.2-snapshot-
|
29
|
+
"@medusajs/framework": "0.0.2-snapshot-20241018092943",
|
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": "0.0.2-snapshot-
|
40
|
+
"@medusajs/framework": "0.0.2-snapshot-20241018092943"
|
41
41
|
},
|
42
42
|
"keywords": [
|
43
43
|
"medusa-provider",
|