@magic-ext/oidc 12.4.1-canary.913.16658556087.0 → 12.4.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/cjs/index.js +1 -45
- package/dist/cjs/index.js.map +2 -2
- package/dist/es/index.js +1 -24
- package/dist/es/index.js.map +2 -2
- package/dist/es/index.mjs +1 -24
- package/dist/es/index.mjs.map +2 -2
- package/dist/extension.js +1 -79
- package/package.json +3 -3
package/dist/cjs/index.js
CHANGED
@@ -1,46 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
var __defProp = Object.defineProperty;
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6
|
-
var __export = (target, all) => {
|
7
|
-
for (var name in all)
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
9
|
-
};
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
12
|
-
for (let key of __getOwnPropNames(from))
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
15
|
-
}
|
16
|
-
return to;
|
17
|
-
};
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
19
|
-
|
20
|
-
// src/index.ts
|
21
|
-
var index_exports = {};
|
22
|
-
__export(index_exports, {
|
23
|
-
MagicOpenIdConnectPayloadMethod: () => MagicOpenIdConnectPayloadMethod,
|
24
|
-
OpenIdExtension: () => OpenIdExtension
|
25
|
-
});
|
26
|
-
module.exports = __toCommonJS(index_exports);
|
27
|
-
var import_commons = require("@magic-sdk/commons");
|
28
|
-
|
29
|
-
// src/types.ts
|
30
|
-
var MagicOpenIdConnectPayloadMethod = /* @__PURE__ */ ((MagicOpenIdConnectPayloadMethod2) => {
|
31
|
-
MagicOpenIdConnectPayloadMethod2["LoginWithOIDC"] = "magic_auth_login_with_oidc";
|
32
|
-
return MagicOpenIdConnectPayloadMethod2;
|
33
|
-
})(MagicOpenIdConnectPayloadMethod || {});
|
34
|
-
|
35
|
-
// src/index.ts
|
36
|
-
var OpenIdExtension = class extends import_commons.Extension.Internal {
|
37
|
-
name = "openid";
|
38
|
-
config = {};
|
39
|
-
loginWithOIDC(params) {
|
40
|
-
const requestPayload = this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc" /* LoginWithOIDC */, [
|
41
|
-
params
|
42
|
-
]);
|
43
|
-
return this.request(requestPayload);
|
44
|
-
}
|
45
|
-
};
|
1
|
+
"use strict";var o=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(t,i)=>{for(var n in i)o(t,n,{get:i[n],enumerable:!0})},h=(t,i,n,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(let e of m(i))!c.call(t,e)&&e!==n&&o(t,e,{get:()=>i[e],enumerable:!(s=g(i,e))||s.enumerable});return t};var l=t=>h(o({},"__esModule",{value:!0}),t);var u={};d(u,{MagicOpenIdConnectPayloadMethod:()=>r,OpenIdExtension:()=>a});module.exports=l(u);var p=require("@magic-sdk/commons");var r=(i=>(i.LoginWithOIDC="magic_auth_login_with_oidc",i))(r||{});var a=class extends p.Extension.Internal{name="openid";config={};loginWithOIDC(i){let n=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[i]);return this.request(n)}};
|
46
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/index.ts", "../../src/types.ts"],
|
4
4
|
"sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n lifespan?: number;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
|
5
|
-
"mappings": "
|
6
|
-
"names": ["MagicOpenIdConnectPayloadMethod"]
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,qCAAAE,EAAA,oBAAAC,IAAA,eAAAC,EAAAJ,GAAA,IAAAK,EAA0B,8BCMnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDHL,IAAMC,EAAN,cAA8B,YAAU,QAAwB,CACrE,KAAO,SACP,OAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
|
6
|
+
"names": ["index_exports", "__export", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "__toCommonJS", "import_commons", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "params", "requestPayload"]
|
7
7
|
}
|
package/dist/es/index.js
CHANGED
@@ -1,25 +1,2 @@
|
|
1
|
-
|
2
|
-
import { Extension } from "@magic-sdk/commons";
|
3
|
-
|
4
|
-
// src/types.ts
|
5
|
-
var MagicOpenIdConnectPayloadMethod = /* @__PURE__ */ ((MagicOpenIdConnectPayloadMethod2) => {
|
6
|
-
MagicOpenIdConnectPayloadMethod2["LoginWithOIDC"] = "magic_auth_login_with_oidc";
|
7
|
-
return MagicOpenIdConnectPayloadMethod2;
|
8
|
-
})(MagicOpenIdConnectPayloadMethod || {});
|
9
|
-
|
10
|
-
// src/index.ts
|
11
|
-
var OpenIdExtension = class extends Extension.Internal {
|
12
|
-
name = "openid";
|
13
|
-
config = {};
|
14
|
-
loginWithOIDC(params) {
|
15
|
-
const requestPayload = this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc" /* LoginWithOIDC */, [
|
16
|
-
params
|
17
|
-
]);
|
18
|
-
return this.request(requestPayload);
|
19
|
-
}
|
20
|
-
};
|
21
|
-
export {
|
22
|
-
MagicOpenIdConnectPayloadMethod,
|
23
|
-
OpenIdExtension
|
24
|
-
};
|
1
|
+
import{Extension as o}from"@magic-sdk/commons";var t=(i=>(i.LoginWithOIDC="magic_auth_login_with_oidc",i))(t||{});var n=class extends o.Internal{name="openid";config={};loginWithOIDC(i){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[i]);return this.request(e)}};export{t as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
|
25
2
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/index.ts", "../../src/types.ts"],
|
4
4
|
"sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n lifespan?: number;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
|
5
|
-
"mappings": "
|
6
|
-
"names": ["MagicOpenIdConnectPayloadMethod"]
|
5
|
+
"mappings": "AAAA,OAAS,aAAAA,MAAiB,qBCMnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDHL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CACrE,KAAO,SACP,OAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
|
6
|
+
"names": ["Extension", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "Extension", "params", "requestPayload"]
|
7
7
|
}
|
package/dist/es/index.mjs
CHANGED
@@ -1,25 +1,2 @@
|
|
1
|
-
|
2
|
-
import { Extension } from "@magic-sdk/commons";
|
3
|
-
|
4
|
-
// src/types.ts
|
5
|
-
var MagicOpenIdConnectPayloadMethod = /* @__PURE__ */ ((MagicOpenIdConnectPayloadMethod2) => {
|
6
|
-
MagicOpenIdConnectPayloadMethod2["LoginWithOIDC"] = "magic_auth_login_with_oidc";
|
7
|
-
return MagicOpenIdConnectPayloadMethod2;
|
8
|
-
})(MagicOpenIdConnectPayloadMethod || {});
|
9
|
-
|
10
|
-
// src/index.ts
|
11
|
-
var OpenIdExtension = class extends Extension.Internal {
|
12
|
-
name = "openid";
|
13
|
-
config = {};
|
14
|
-
loginWithOIDC(params) {
|
15
|
-
const requestPayload = this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc" /* LoginWithOIDC */, [
|
16
|
-
params
|
17
|
-
]);
|
18
|
-
return this.request(requestPayload);
|
19
|
-
}
|
20
|
-
};
|
21
|
-
export {
|
22
|
-
MagicOpenIdConnectPayloadMethod,
|
23
|
-
OpenIdExtension
|
24
|
-
};
|
1
|
+
import{Extension as o}from"@magic-sdk/commons";var t=(i=>(i.LoginWithOIDC="magic_auth_login_with_oidc",i))(t||{});var n=class extends o.Internal{name="openid";config={};loginWithOIDC(i){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[i]);return this.request(e)}};export{t as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
|
25
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/es/index.mjs.map
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/index.ts", "../../src/types.ts"],
|
4
4
|
"sourcesContent": ["import { Extension } from '@magic-sdk/commons';\nimport { MagicOpenIdConnectPayloadMethod, LoginWithOpenIdParams } from './types';\n\nexport class OpenIdExtension extends Extension.Internal<'openid', any> {\n name = 'openid' as const;\n config: any = {};\n\n public loginWithOIDC(params: LoginWithOpenIdParams) {\n const requestPayload = this.utils.createJsonRpcRequestPayload(MagicOpenIdConnectPayloadMethod.LoginWithOIDC, [\n params,\n ]);\n return this.request<string>(requestPayload);\n }\n}\n\nexport * from './types';\n", "export interface LoginWithOpenIdParams {\n jwt: string;\n providerId: string;\n lifespan?: number;\n}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
|
5
|
-
"mappings": "
|
6
|
-
"names": ["MagicOpenIdConnectPayloadMethod"]
|
5
|
+
"mappings": "AAAA,OAAS,aAAAA,MAAiB,qBCMnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDHL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CACrE,KAAO,SACP,OAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
|
6
|
+
"names": ["Extension", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "Extension", "params", "requestPayload"]
|
7
7
|
}
|
package/dist/extension.js
CHANGED
@@ -1,80 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
var MagicOpenIdConnectExtension = (() => {
|
3
|
-
var __create = Object.create;
|
4
|
-
var __defProp = Object.defineProperty;
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
9
|
-
var __commonJS = (cb, mod) => function __require() {
|
10
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
11
|
-
};
|
12
|
-
var __export = (target, all) => {
|
13
|
-
for (var name in all)
|
14
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
15
|
-
};
|
16
|
-
var __copyProps = (to, from, except, desc) => {
|
17
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
18
|
-
for (let key of __getOwnPropNames(from))
|
19
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
20
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
21
|
-
}
|
22
|
-
return to;
|
23
|
-
};
|
24
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
25
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
26
|
-
// file that has been converted to a CommonJS file using a Babel-
|
27
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
28
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
29
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
30
|
-
mod
|
31
|
-
));
|
32
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
33
|
-
|
34
|
-
// globals-plugin:@magic-sdk/commons:@magic-sdk/commons
|
35
|
-
var require_commons = __commonJS({
|
36
|
-
"globals-plugin:@magic-sdk/commons:@magic-sdk/commons"(exports, module) {
|
37
|
-
"use strict";
|
38
|
-
module.exports = Magic;
|
39
|
-
}
|
40
|
-
});
|
41
|
-
|
42
|
-
// src/index.cdn.ts
|
43
|
-
var index_cdn_exports = {};
|
44
|
-
__export(index_cdn_exports, {
|
45
|
-
default: () => index_cdn_default
|
46
|
-
});
|
47
|
-
|
48
|
-
// src/index.ts
|
49
|
-
var import_commons = __toESM(require_commons());
|
50
|
-
|
51
|
-
// src/types.ts
|
52
|
-
var types_exports = {};
|
53
|
-
__export(types_exports, {
|
54
|
-
MagicOpenIdConnectPayloadMethod: () => MagicOpenIdConnectPayloadMethod
|
55
|
-
});
|
56
|
-
var MagicOpenIdConnectPayloadMethod = /* @__PURE__ */ ((MagicOpenIdConnectPayloadMethod2) => {
|
57
|
-
MagicOpenIdConnectPayloadMethod2["LoginWithOIDC"] = "magic_auth_login_with_oidc";
|
58
|
-
return MagicOpenIdConnectPayloadMethod2;
|
59
|
-
})(MagicOpenIdConnectPayloadMethod || {});
|
60
|
-
|
61
|
-
// src/index.ts
|
62
|
-
var OpenIdExtension = class extends import_commons.Extension.Internal {
|
63
|
-
name = "openid";
|
64
|
-
config = {};
|
65
|
-
loginWithOIDC(params) {
|
66
|
-
const requestPayload = this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc" /* LoginWithOIDC */, [
|
67
|
-
params
|
68
|
-
]);
|
69
|
-
return this.request(requestPayload);
|
70
|
-
}
|
71
|
-
};
|
72
|
-
|
73
|
-
// src/index.cdn.ts
|
74
|
-
Object.assign(OpenIdExtension, {
|
75
|
-
...types_exports
|
76
|
-
});
|
77
|
-
var index_cdn_default = OpenIdExtension;
|
78
|
-
return __toCommonJS(index_cdn_exports);
|
79
|
-
})();
|
1
|
+
"use strict";var MagicOpenIdConnectExtension=(()=>{var l=Object.create;var r=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var O=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),m=(i,t)=>{for(var e in t)r(i,e,{get:t[e],enumerable:!0})},g=(i,t,e,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of f(t))!I.call(i,n)&&n!==e&&r(i,n,{get:()=>t[n],enumerable:!(p=u(t,n))||p.enumerable});return i};var W=(i,t,e)=>(e=i!=null?l(x(i)):{},g(t||!i||!i.__esModule?r(e,"default",{value:i,enumerable:!0}):e,i)),y=i=>g(r({},"__esModule",{value:!0}),i);var d=O((b,c)=>{"use strict";c.exports=Magic});var P={};m(P,{default:()=>L});var h=W(d());var a={};m(a,{MagicOpenIdConnectPayloadMethod:()=>s});var s=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(s||{});var o=class extends h.Extension.Internal{name="openid";config={};loginWithOIDC(t){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[t]);return this.request(e)}};Object.assign(o,{...a});var L=o;return y(P);})();
|
80
2
|
if (MagicOpenIdConnectExtension && MagicOpenIdConnectExtension.default != null) { MagicOpenIdConnectExtension = Object.assign(MagicOpenIdConnectExtension.default, MagicOpenIdConnectExtension); delete MagicOpenIdConnectExtension.default; }
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@magic-ext/oidc",
|
3
|
-
"version": "12.4.1
|
3
|
+
"version": "12.4.1",
|
4
4
|
"description": "Magic OIDC SDK Extension for Web environments.",
|
5
5
|
"author": "Magic <team@magic.link> (https://magic.link/)",
|
6
6
|
"license": "MIT",
|
@@ -28,7 +28,7 @@
|
|
28
28
|
]
|
29
29
|
},
|
30
30
|
"devDependencies": {
|
31
|
-
"@magic-sdk/commons": "25.4.1
|
31
|
+
"@magic-sdk/commons": "^25.4.1"
|
32
32
|
},
|
33
|
-
"gitHead": "
|
33
|
+
"gitHead": "08fead82c4de980026813d39e805c420d393b566"
|
34
34
|
}
|