@magic-ext/oidc 12.0.6-canary.e422100.0 → 12.0.6

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 CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var r=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var d=(t,i)=>{for(var n in i)r(t,n,{get:i[n],enumerable:!0})},h=(t,i,n,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(let e of m(i))!c.call(t,e)&&e!==n&&r(t,e,{get:()=>i[e],enumerable:!(o=g(i,e))||o.enumerable});return t};var l=t=>h(r({},"__esModule",{value:!0}),t);var u={};d(u,{MagicOpenIdConnectPayloadMethod:()=>a,OpenIdExtension:()=>s});module.exports=l(u);var p=require("@magic-sdk/commons");var a=(i=>(i.LoginWithOIDC="magic_auth_login_with_oidc",i))(a||{});var s=class extends p.Extension.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(n){let o=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[n]);return this.request(o)}};
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)}};
2
2
  //# sourceMappingURL=index.js.map
@@ -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": "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,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
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
6
  "names": ["index_exports", "__export", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "__toCommonJS", "import_commons", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "params", "requestPayload"]
7
7
  }
package/dist/es/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import{Extension as r}from"@magic-sdk/commons";var t=(i=>(i.LoginWithOIDC="magic_auth_login_with_oidc",i))(t||{});var n=class extends r.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(e){let o=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[e]);return this.request(o)}};export{t as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
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};
2
2
  //# sourceMappingURL=index.js.map
@@ -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": "AAAA,OAAS,aAAAA,MAAiB,qBCMnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDHL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
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
6
  "names": ["Extension", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "Extension", "params", "requestPayload"]
7
7
  }
package/dist/es/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import{Extension as r}from"@magic-sdk/commons";var t=(i=>(i.LoginWithOIDC="magic_auth_login_with_oidc",i))(t||{});var n=class extends r.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(e){let o=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[e]);return this.request(o)}};export{t as MagicOpenIdConnectPayloadMethod,n as OpenIdExtension};
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};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -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": "AAAA,OAAS,aAAAA,MAAiB,qBCMnB,IAAKC,OACVA,EAAA,cAAgB,6BADNA,OAAA,IDHL,IAAMC,EAAN,cAA8BC,EAAU,QAAwB,CAAhE,kCACL,UAAO,SACP,YAAc,CAAC,EAER,cAAcC,EAA+B,CAClD,IAAMC,EAAiB,KAAK,MAAM,yDAA2E,CAC3GD,CACF,CAAC,EACD,OAAO,KAAK,QAAgBC,CAAc,CAC5C,CACF",
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
6
  "names": ["Extension", "MagicOpenIdConnectPayloadMethod", "OpenIdExtension", "Extension", "params", "requestPayload"]
7
7
  }
package/dist/extension.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var MagicOpenIdConnectExtension=(()=>{var l=Object.create;var s=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)s(i,e,{get:t[e],enumerable:!0})},g=(i,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of f(t))!I.call(i,n)&&n!==e&&s(i,n,{get:()=>t[n],enumerable:!(r=u(t,n))||r.enumerable});return i};var W=(i,t,e)=>(e=i!=null?l(x(i)):{},g(t||!i||!i.__esModule?s(e,"default",{value:i,enumerable:!0}):e,i)),y=i=>g(s({},"__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 p={};m(p,{MagicOpenIdConnectPayloadMethod:()=>a});var a=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(a||{});var o=class extends h.Extension.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(e){let r=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[e]);return this.request(r)}};Object.assign(o,{...p});var L=o;return y(P);})();
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);})();
2
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.0.6-canary.e422100.0",
3
+ "version": "12.0.6",
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.0.6-canary.e422100.0"
31
+ "@magic-sdk/commons": "^25.0.6"
32
32
  },
33
- "gitHead": "e422100df3383c1cfbe5371f894951cb98ff8404"
33
+ "gitHead": "08b9a70ad19874583402cf744bff1ce406a8659a"
34
34
  }