@medusajs/auth-google 2.0.5-snapshot-20241113173305 → 2.0.5-snapshot-20241120130614
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../src/services/google.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,EACzB,MAAM,EACP,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,0BAA0B,EAE3B,MAAM,2BAA2B,CAAA;AAGlC,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,UAAU,kBAAmB,SAAQ,yBAAyB;CAAG;AAGjE,qBAAa,iBAAkB,SAAQ,0BAA0B;IAC/D,MAAM,CAAC,UAAU,SAAW;IAC5B,MAAM,CAAC,YAAY,SAA0B;IAE7C,SAAS,CAAC,OAAO,EAAE,kBAAkB,CAAA;IACrC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAA;IAEzB,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,yBAAyB;gBAevD,EAAE,MAAM,EAAE,EAAE,oBAAoB,EAChC,OAAO,EAAE,yBAAyB;IAQ9B,QAAQ,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAO5C,YAAY,CAChB,GAAG,EAAE,mBAAmB,GACvB,OAAO,CAAC,sBAAsB,CAAC;IAW5B,gBAAgB,CACpB,GAAG,EAAE,mBAAmB,EACxB,mBAAmB,EAAE,2BAA2B,GAC/C,OAAO,CAAC,sBAAsB,CAAC;IAkD5B,OAAO,CACX,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,mBAAmB,EAAE,2BAA2B;;;;;;;;;
|
1
|
+
{"version":3,"file":"google.d.ts","sourceRoot":"","sources":["../../src/services/google.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,2BAA2B,EAC3B,yBAAyB,EACzB,MAAM,EACP,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,0BAA0B,EAE3B,MAAM,2BAA2B,CAAA;AAGlC,KAAK,oBAAoB,GAAG;IAC1B,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAED,UAAU,kBAAmB,SAAQ,yBAAyB;CAAG;AAGjE,qBAAa,iBAAkB,SAAQ,0BAA0B;IAC/D,MAAM,CAAC,UAAU,SAAW;IAC5B,MAAM,CAAC,YAAY,SAA0B;IAE7C,SAAS,CAAC,OAAO,EAAE,kBAAkB,CAAA;IACrC,SAAS,CAAC,OAAO,EAAE,MAAM,CAAA;IAEzB,MAAM,CAAC,eAAe,CAAC,OAAO,EAAE,yBAAyB;gBAevD,EAAE,MAAM,EAAE,EAAE,oBAAoB,EAChC,OAAO,EAAE,yBAAyB;IAQ9B,QAAQ,CAAC,CAAC,KAAA,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAO5C,YAAY,CAChB,GAAG,EAAE,mBAAmB,GACvB,OAAO,CAAC,sBAAsB,CAAC;IAW5B,gBAAgB,CACpB,GAAG,EAAE,mBAAmB,EACxB,mBAAmB,EAAE,2BAA2B,GAC/C,OAAO,CAAC,sBAAsB,CAAC;IAkD5B,OAAO,CACX,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,mBAAmB,EAAE,2BAA2B;;;;;;;;;IAmDlD,OAAO,CAAC,WAAW;CAiBpB"}
|
package/dist/services/google.js
CHANGED
@@ -83,6 +83,7 @@ class GoogleAuthService extends utils_1.AbstractAuthModuleProvider {
|
|
83
83
|
const entity_id = payload.sub;
|
84
84
|
const userMetadata = {
|
85
85
|
name: payload.name,
|
86
|
+
email: payload.email,
|
86
87
|
picture: payload.picture,
|
87
88
|
given_name: payload.given_name,
|
88
89
|
family_name: payload.family_name,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"google.js","sourceRoot":"","sources":["../../src/services/google.ts"],"names":[],"mappings":";;;;;;AAOA,qDAGkC;AAClC,gEAA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QAC1E,MAAM,aAAa,GAAG,aAAa,QAAQ,EAAE,CAAA;QAC7C,MAAM,iBAAiB,GAAG,oBAAoB,CAAA;QAC9C,MAAM,UAAU,GAAG,4BAA4B,CAAA;QAE/C,MAAM,OAAO,GAAG,IAAI,GAAG,CACrB,gDAAgD;YAC9C,gBAAgB;YAChB,aAAa;YACb,iBAAiB;YACjB,UAAU;SACX,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CACd,CAAA;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAA;IACxD,CAAC;;AA7KH,8CA8KC;AA7KQ,4BAAU,GAAG,QAAQ,CAAA;AACrB,8BAAY,GAAG,uBAAuB,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/auth-google",
|
3
|
-
"version": "2.0.5-snapshot-
|
3
|
+
"version": "2.0.5-snapshot-20241120130614",
|
4
4
|
"description": "Google OAuth 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.5-snapshot-
|
29
|
+
"@medusajs/framework": "2.0.5-snapshot-20241120130614",
|
30
30
|
"@swc/core": "^1.7.28",
|
31
31
|
"@swc/jest": "^0.2.36",
|
32
32
|
"jest": "^29.7.0",
|
@@ -38,7 +38,7 @@
|
|
38
38
|
"jsonwebtoken": "^9.0.2"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
|
-
"@medusajs/framework": "2.0.5-snapshot-
|
41
|
+
"@medusajs/framework": "2.0.5-snapshot-20241120130614"
|
42
42
|
},
|
43
43
|
"keywords": [
|
44
44
|
"medusa-provider",
|