@magic-ext/oidc 1.0.0 → 1.0.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/CHANGELOG.md +12 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +2 -2
- package/dist/es/index.js +1 -1
- package/dist/es/index.js.map +2 -2
- package/dist/es/index.mjs +1 -1
- package/dist/es/index.mjs.map +2 -2
- package/dist/extension.js +1 -1
- package/dist/types/index.d.ts +2 -2
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
# v1.0.1 (Wed Jan 04 2023)
|
2
|
+
|
3
|
+
#### 🐛 Bug Fix
|
4
|
+
|
5
|
+
- add oidc support [#349](https://github.com/magiclabs/magic-js/pull/349) ([@dgerrellsMagic](https://github.com/dgerrellsMagic))
|
6
|
+
|
7
|
+
#### Authors: 1
|
8
|
+
|
9
|
+
- [@dgerrellsMagic](https://github.com/dgerrellsMagic)
|
10
|
+
|
11
|
+
---
|
12
|
+
|
1
13
|
# v1.0.0 (Tue Aug 16 2022)
|
2
14
|
|
3
15
|
#### Added
|
package/dist/cjs/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var
|
1
|
+
var o=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var d=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var c=i=>o(i,"__esModule",{value:!0});var h=(i,t)=>{for(var n in t)o(i,n,{get:t[n],enumerable:!0})},l=(i,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of d(t))!m.call(i,e)&&(n||e!=="default")&&o(i,e,{get:()=>t[e],enumerable:!(a=g(t,e))||a.enumerable});return i};var u=(i=>(t,n)=>i&&i.get(t)||(n=l(c({}),t,1),i&&i.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0);var I={};h(I,{MagicOpenIdConnectPayloadMethod:()=>r,OpenIdExtension:()=>p});var s=require("magic-sdk");var r=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(r||{});var p=class extends s.Extension.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(t){let n=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[t]);return this.request(n)}};module.exports=u(I);
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/index.ts", "../../src/types.ts"],
|
4
|
-
"sourcesContent": ["import { Extension } from 'magic-sdk';\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<
|
5
|
-
"mappings": "8gBAAA,kFAA0B,qBCKnB,GAAK,GAAL,CAAK,GACV,iBAAgB,6BADN,WDFL,mBAA8B,aAAU,QAAwB,CAAhE,aAHP,CAGO,oBACL,UAAO,SACP,YAAc,GAEP,cAAc,EAA+B,CAClD,GAAM,GAAiB,KAAK,MAAM,4BAA4B,6BAA+C,CAC3G,IAEF,MAAO,MAAK,
|
4
|
+
"sourcesContent": ["import { Extension } from 'magic-sdk';\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}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
|
5
|
+
"mappings": "8gBAAA,kFAA0B,qBCKnB,GAAK,GAAL,CAAK,GACV,iBAAgB,6BADN,WDFL,mBAA8B,aAAU,QAAwB,CAAhE,aAHP,CAGO,oBACL,UAAO,SACP,YAAc,GAEP,cAAc,EAA+B,CAClD,GAAM,GAAiB,KAAK,MAAM,4BAA4B,6BAA+C,CAC3G,IAEF,MAAO,MAAK,QAAgB",
|
6
6
|
"names": []
|
7
7
|
}
|
package/dist/es/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import{Extension as
|
1
|
+
import{Extension as e}from"magic-sdk";var i=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(i||{});var o=class extends e.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(t){let n=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[t]);return this.request(n)}};export{i as MagicOpenIdConnectPayloadMethod,o as OpenIdExtension};
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/es/index.js.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/index.ts", "../../src/types.ts"],
|
4
|
-
"sourcesContent": ["import { Extension } from 'magic-sdk';\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<
|
5
|
-
"mappings": "AAAA,sCCKO,GAAK,GAAL,CAAK,GACV,iBAAgB,6BADN,WDFL,mBAA8B,GAAU,QAAwB,CAAhE,aAHP,CAGO,oBACL,UAAO,SACP,YAAc,GAEP,cAAc,EAA+B,CAClD,GAAM,GAAiB,KAAK,MAAM,4BAA4B,6BAA+C,CAC3G,IAEF,MAAO,MAAK,
|
4
|
+
"sourcesContent": ["import { Extension } from 'magic-sdk';\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}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
|
5
|
+
"mappings": "AAAA,sCCKO,GAAK,GAAL,CAAK,GACV,iBAAgB,6BADN,WDFL,mBAA8B,GAAU,QAAwB,CAAhE,aAHP,CAGO,oBACL,UAAO,SACP,YAAc,GAEP,cAAc,EAA+B,CAClD,GAAM,GAAiB,KAAK,MAAM,4BAA4B,6BAA+C,CAC3G,IAEF,MAAO,MAAK,QAAgB",
|
6
6
|
"names": []
|
7
7
|
}
|
package/dist/es/index.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import{Extension as
|
1
|
+
import{Extension as e}from"magic-sdk";var i=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(i||{});var o=class extends e.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(t){let n=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[t]);return this.request(n)}};export{i as MagicOpenIdConnectPayloadMethod,o as OpenIdExtension};
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/es/index.mjs.map
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/index.ts", "../../src/types.ts"],
|
4
|
-
"sourcesContent": ["import { Extension } from 'magic-sdk';\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<
|
5
|
-
"mappings": "AAAA,sCCKO,GAAK,GAAL,CAAK,GACV,iBAAgB,6BADN,WDFL,mBAA8B,GAAU,QAAwB,CAAhE,aAHP,CAGO,oBACL,UAAO,SACP,YAAc,GAEP,cAAc,EAA+B,CAClD,GAAM,GAAiB,KAAK,MAAM,4BAA4B,6BAA+C,CAC3G,IAEF,MAAO,MAAK,
|
4
|
+
"sourcesContent": ["import { Extension } from 'magic-sdk';\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}\n\nexport enum MagicOpenIdConnectPayloadMethod {\n LoginWithOIDC = 'magic_auth_login_with_oidc',\n}\n"],
|
5
|
+
"mappings": "AAAA,sCCKO,GAAK,GAAL,CAAK,GACV,iBAAgB,6BADN,WDFL,mBAA8B,GAAU,QAAwB,CAAhE,aAHP,CAGO,oBACL,UAAO,SACP,YAAc,GAEP,cAAc,EAA+B,CAClD,GAAM,GAAiB,KAAK,MAAM,4BAA4B,6BAA+C,CAC3G,IAEF,MAAO,MAAK,QAAgB",
|
6
6
|
"names": []
|
7
7
|
}
|
package/dist/extension.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var MagicOpenIdConnectExtension=(()=>{var O=Object.create;var
|
1
|
+
var MagicOpenIdConnectExtension=(()=>{var O=Object.create;var o=Object.defineProperty;var W=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames,m=Object.getOwnPropertySymbols,L=Object.getPrototypeOf,g=Object.prototype.hasOwnProperty,P=Object.prototype.propertyIsEnumerable;var d=(i,t,e)=>t in i?o(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,c=(i,t)=>{for(var e in t||(t={}))g.call(t,e)&&d(i,e,t[e]);if(m)for(var e of m(t))P.call(t,e)&&d(i,e,t[e]);return i};var h=i=>o(i,"__esModule",{value:!0});var _=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),l=(i,t)=>{for(var e in t)o(i,e,{get:t[e],enumerable:!0})},u=(i,t,e,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of y(t))!g.call(i,n)&&(e||n!=="default")&&o(i,n,{get:()=>t[n],enumerable:!(p=W(t,n))||p.enumerable});return i},q=(i,t)=>u(h(o(i!=null?O(L(i)):{},"default",!t&&i&&i.__esModule?{get:()=>i.default,enumerable:!0}:{value:i,enumerable:!0})),i),C=(i=>(t,e)=>i&&i.get(t)||(e=u(h({}),t,1),i&&i.set(t,e),e))(typeof WeakMap!="undefined"?new WeakMap:0);var I=_((w,x)=>{x.exports=Magic});var b={};l(b,{default:()=>D});var f=q(I());var a={};l(a,{MagicOpenIdConnectPayloadMethod:()=>s});var s=(t=>(t.LoginWithOIDC="magic_auth_login_with_oidc",t))(s||{});var r=class extends f.Extension.Internal{constructor(){super(...arguments);this.name="openid";this.config={}}loginWithOIDC(t){let e=this.utils.createJsonRpcRequestPayload("magic_auth_login_with_oidc",[t]);return this.request(e)}};Object.assign(r,c({},a));var D=r;return C(b);})();
|
2
2
|
if (MagicOpenIdConnectExtension && MagicOpenIdConnectExtension.default != null) { MagicOpenIdConnectExtension = Object.assign(MagicOpenIdConnectExtension.default, MagicOpenIdConnectExtension); delete MagicOpenIdConnectExtension.default; }
|
package/dist/types/index.d.ts
CHANGED
@@ -3,8 +3,8 @@ import { LoginWithOpenIdParams } from './types';
|
|
3
3
|
export declare class OpenIdExtension extends Extension.Internal<'openid', any> {
|
4
4
|
name: "openid";
|
5
5
|
config: any;
|
6
|
-
loginWithOIDC(params: LoginWithOpenIdParams): import("magic-sdk").PromiEvent<
|
7
|
-
done: (result:
|
6
|
+
loginWithOIDC(params: LoginWithOpenIdParams): import("magic-sdk").PromiEvent<string, {
|
7
|
+
done: (result: string) => void;
|
8
8
|
error: (reason: any) => void;
|
9
9
|
settled: () => void;
|
10
10
|
}>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@magic-ext/oidc",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.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,5 +28,6 @@
|
|
28
28
|
},
|
29
29
|
"devDependencies": {
|
30
30
|
"magic-sdk": "^9.0.0"
|
31
|
-
}
|
31
|
+
},
|
32
|
+
"gitHead": "7539c65cbacee3691b55d8ba67a0cd7c82bc6096"
|
32
33
|
}
|