From f8b69fb795b18aa31e64ae7758542fdc7ace3c25 Mon Sep 17 00:00:00 2001 From: Chris Dakin Date: Tue, 10 Oct 2023 14:22:22 -0400 Subject: [PATCH 1/6] Add optional field to login methods --- packages/@magic-sdk/provider/src/modules/auth.ts | 8 ++++---- .../spec/modules/auth/loginWithEmailOTP.spec.ts | 12 ++++++++++++ .../spec/modules/auth/loginWithMagicLink.spec.ts | 12 ++++++++++++ .../@magic-sdk/types/src/modules/auth-types.ts | 14 ++++++++++++++ 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/packages/@magic-sdk/provider/src/modules/auth.ts b/packages/@magic-sdk/provider/src/modules/auth.ts index d64d41fbd..f13b82428 100644 --- a/packages/@magic-sdk/provider/src/modules/auth.ts +++ b/packages/@magic-sdk/provider/src/modules/auth.ts @@ -49,11 +49,11 @@ export class AuthModule extends BaseModule { }).log(); } - const { email, showUI = true, redirectURI } = configuration; + const { email, showUI = true, redirectURI, customTemplateName } = configuration; const requestPayload = createJsonRpcRequestPayload( this.sdk.testMode ? MagicPayloadMethod.LoginWithMagicLinkTestMode : MagicPayloadMethod.LoginWithMagicLink, - [{ email, showUI, redirectURI }], + [{ email, showUI, redirectURI, customTemplateName }], ); return this.request(requestPayload); } @@ -78,10 +78,10 @@ export class AuthModule extends BaseModule { * of 15 minutes) */ public loginWithEmailOTP(configuration: LoginWithEmailOTPConfiguration) { - const { email, showUI, deviceCheckUI } = configuration; + const { email, showUI, deviceCheckUI, customTemplateName } = configuration; const requestPayload = createJsonRpcRequestPayload( this.sdk.testMode ? MagicPayloadMethod.LoginWithEmailOTPTestMode : MagicPayloadMethod.LoginWithEmailOTP, - [{ email, showUI, deviceCheckUI }], + [{ email, showUI, deviceCheckUI, customTemplateName }], ); const handle = this.request(requestPayload); if (!deviceCheckUI && handle) { diff --git a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts index 9a0ffe084..85fa0712b 100644 --- a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts +++ b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts @@ -37,6 +37,18 @@ test('Generates JSON RPC request payload with `showUI: false` parameter', async expect(requestPayload.params).toEqual([{ email: expectedEmail, showUI: false }]); }); +test('Generates JSON RPC request payload with `customTemplateName` parameter', async () => { + const magic = createMagicSDK(); + magic.auth.request = jest.fn(); + + await magic.auth.loginWithEmailOTP({ email: expectedEmail, customTemplateName: 'my custom template' }); + + const requestPayload = magic.auth.request.mock.calls[0][0]; + expect(requestPayload.jsonrpc).toBe('2.0'); + expect(requestPayload.method).toBe(MagicPayloadMethod.LoginWithEmailOTP); + expect(requestPayload.params).toEqual([{ email: expectedEmail, customTemplateName: 'my custom template' }]); +}); + test('If `testMode` is enabled, testing-specific RPC method is used', async () => { const magic = createMagicSDKTestMode(); magic.auth.request = jest.fn(); diff --git a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts index 6f02516e3..2cd99a862 100644 --- a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts +++ b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts @@ -48,6 +48,18 @@ test('Generates JSON RPC request payload with `redirectURI` parameter', async () expect(requestPayload.params).toEqual([{ email: 'test', showUI: true, redirectURI: 'helloworld' }]); }); +test('Generates JSON RPC request payload with `customTemplateName` parameter', async () => { + const magic = createMagicSDK(); + magic.auth.request = jest.fn(); + + await magic.auth.loginWithMagicLink({ email: 'test', showUI: true, customTemplateName: 'my custom template' }); + + const requestPayload = magic.auth.request.mock.calls[0][0]; + expect(requestPayload.jsonrpc).toBe('2.0'); + expect(requestPayload.method).toBe(MagicPayloadMethod.LoginWithMagicLink); + expect(requestPayload.params).toEqual([{ email: 'test', showUI: true, customTemplateName: 'my custom template' }]); +}); + test('If `testMode` is enabled, testing-specific RPC method is used', async () => { const magic = createMagicSDKTestMode(); magic.auth.request = jest.fn(); diff --git a/packages/@magic-sdk/types/src/modules/auth-types.ts b/packages/@magic-sdk/types/src/modules/auth-types.ts index c0988c07f..d76d6a177 100644 --- a/packages/@magic-sdk/types/src/modules/auth-types.ts +++ b/packages/@magic-sdk/types/src/modules/auth-types.ts @@ -18,6 +18,13 @@ export interface LoginWithMagicLinkConfiguration { * configure here. */ redirectURI?: string; + + /** + * Enterprise users with a custom SMTP can create custom email templates + * from their dashboard. The default Magic loginWithMagicLink email will be + * overriden when a customTemplateName is passed here. + */ + customTemplateName?: string; } export interface LoginWithSmsConfiguration { @@ -54,6 +61,13 @@ export interface LoginWithEmailOTPConfiguration { * handle device check events, providing a more tailored user experience. */ deviceCheckUI?: boolean; + + /** + * Enterprise users with a custom SMTP can create custom email templates + * from their dashboard. The default Magic loginWithOTP email will be + * overriden when a customTemplateName is passed here. + */ + customTemplateName?: string; } /** From 8e6ae7d3085ca5a55e2e05f02e77dd5ff28277a4 Mon Sep 17 00:00:00 2001 From: Chris Dakin Date: Tue, 10 Oct 2023 15:34:02 -0400 Subject: [PATCH 2/6] Change out variable name for back end consumption --- packages/@magic-sdk/provider/src/modules/auth.ts | 8 ++++---- .../test/spec/modules/auth/loginWithEmailOTP.spec.ts | 6 +++--- .../test/spec/modules/auth/loginWithMagicLink.spec.ts | 6 +++--- packages/@magic-sdk/types/src/modules/auth-types.ts | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/@magic-sdk/provider/src/modules/auth.ts b/packages/@magic-sdk/provider/src/modules/auth.ts index f13b82428..19482fe92 100644 --- a/packages/@magic-sdk/provider/src/modules/auth.ts +++ b/packages/@magic-sdk/provider/src/modules/auth.ts @@ -49,11 +49,11 @@ export class AuthModule extends BaseModule { }).log(); } - const { email, showUI = true, redirectURI, customTemplateName } = configuration; + const { email, showUI = true, redirectURI, variation } = configuration; const requestPayload = createJsonRpcRequestPayload( this.sdk.testMode ? MagicPayloadMethod.LoginWithMagicLinkTestMode : MagicPayloadMethod.LoginWithMagicLink, - [{ email, showUI, redirectURI, customTemplateName }], + [{ email, showUI, redirectURI, variation }], ); return this.request(requestPayload); } @@ -78,10 +78,10 @@ export class AuthModule extends BaseModule { * of 15 minutes) */ public loginWithEmailOTP(configuration: LoginWithEmailOTPConfiguration) { - const { email, showUI, deviceCheckUI, customTemplateName } = configuration; + const { email, showUI, deviceCheckUI, variation } = configuration; const requestPayload = createJsonRpcRequestPayload( this.sdk.testMode ? MagicPayloadMethod.LoginWithEmailOTPTestMode : MagicPayloadMethod.LoginWithEmailOTP, - [{ email, showUI, deviceCheckUI, customTemplateName }], + [{ email, showUI, deviceCheckUI, variation }], ); const handle = this.request(requestPayload); if (!deviceCheckUI && handle) { diff --git a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts index 85fa0712b..6f834cc6a 100644 --- a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts +++ b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts @@ -37,16 +37,16 @@ test('Generates JSON RPC request payload with `showUI: false` parameter', async expect(requestPayload.params).toEqual([{ email: expectedEmail, showUI: false }]); }); -test('Generates JSON RPC request payload with `customTemplateName` parameter', async () => { +test('Generates JSON RPC request payload with `variation` parameter', async () => { const magic = createMagicSDK(); magic.auth.request = jest.fn(); - await magic.auth.loginWithEmailOTP({ email: expectedEmail, customTemplateName: 'my custom template' }); + await magic.auth.loginWithEmailOTP({ email: expectedEmail, variation: 'my custom template' }); const requestPayload = magic.auth.request.mock.calls[0][0]; expect(requestPayload.jsonrpc).toBe('2.0'); expect(requestPayload.method).toBe(MagicPayloadMethod.LoginWithEmailOTP); - expect(requestPayload.params).toEqual([{ email: expectedEmail, customTemplateName: 'my custom template' }]); + expect(requestPayload.params).toEqual([{ email: expectedEmail, variation: 'my custom template' }]); }); test('If `testMode` is enabled, testing-specific RPC method is used', async () => { diff --git a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts index 2cd99a862..ec74a33f4 100644 --- a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts +++ b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts @@ -48,16 +48,16 @@ test('Generates JSON RPC request payload with `redirectURI` parameter', async () expect(requestPayload.params).toEqual([{ email: 'test', showUI: true, redirectURI: 'helloworld' }]); }); -test('Generates JSON RPC request payload with `customTemplateName` parameter', async () => { +test('Generates JSON RPC request payload with `variation` parameter', async () => { const magic = createMagicSDK(); magic.auth.request = jest.fn(); - await magic.auth.loginWithMagicLink({ email: 'test', showUI: true, customTemplateName: 'my custom template' }); + await magic.auth.loginWithMagicLink({ email: 'test', showUI: true, variation: 'my custom template' }); const requestPayload = magic.auth.request.mock.calls[0][0]; expect(requestPayload.jsonrpc).toBe('2.0'); expect(requestPayload.method).toBe(MagicPayloadMethod.LoginWithMagicLink); - expect(requestPayload.params).toEqual([{ email: 'test', showUI: true, customTemplateName: 'my custom template' }]); + expect(requestPayload.params).toEqual([{ email: 'test', showUI: true, variation: 'my custom template' }]); }); test('If `testMode` is enabled, testing-specific RPC method is used', async () => { diff --git a/packages/@magic-sdk/types/src/modules/auth-types.ts b/packages/@magic-sdk/types/src/modules/auth-types.ts index d76d6a177..bfb9f312f 100644 --- a/packages/@magic-sdk/types/src/modules/auth-types.ts +++ b/packages/@magic-sdk/types/src/modules/auth-types.ts @@ -22,9 +22,9 @@ export interface LoginWithMagicLinkConfiguration { /** * Enterprise users with a custom SMTP can create custom email templates * from their dashboard. The default Magic loginWithMagicLink email will be - * overriden when a customTemplateName is passed here. + * overriden when a variation is passed here. */ - customTemplateName?: string; + variation?: string; } export interface LoginWithSmsConfiguration { @@ -65,9 +65,9 @@ export interface LoginWithEmailOTPConfiguration { /** * Enterprise users with a custom SMTP can create custom email templates * from their dashboard. The default Magic loginWithOTP email will be - * overriden when a customTemplateName is passed here. + * overriden when a variation is passed here. */ - customTemplateName?: string; + variation?: string; } /** From ac206c20ae7d585c372e4a54e3f4e86ed111f6ba Mon Sep 17 00:00:00 2001 From: Chris Dakin Date: Wed, 11 Oct 2023 12:33:08 -0400 Subject: [PATCH 3/6] Logging --- packages/@magic-sdk/provider/src/modules/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/@magic-sdk/provider/src/modules/auth.ts b/packages/@magic-sdk/provider/src/modules/auth.ts index 19482fe92..b7489358a 100644 --- a/packages/@magic-sdk/provider/src/modules/auth.ts +++ b/packages/@magic-sdk/provider/src/modules/auth.ts @@ -49,6 +49,7 @@ export class AuthModule extends BaseModule { }).log(); } + console.log(configuration); const { email, showUI = true, redirectURI, variation } = configuration; const requestPayload = createJsonRpcRequestPayload( From ed6c0f7584f8020d148c39f14980ed2d8398f83a Mon Sep 17 00:00:00 2001 From: Chris Dakin Date: Wed, 11 Oct 2023 14:39:11 -0400 Subject: [PATCH 4/6] Changes function to accept overrides --- packages/@magic-sdk/provider/src/modules/auth.ts | 9 ++++----- packages/@magic-sdk/types/src/modules/auth-types.ts | 8 ++++++-- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/@magic-sdk/provider/src/modules/auth.ts b/packages/@magic-sdk/provider/src/modules/auth.ts index b7489358a..f28da2e2c 100644 --- a/packages/@magic-sdk/provider/src/modules/auth.ts +++ b/packages/@magic-sdk/provider/src/modules/auth.ts @@ -49,12 +49,11 @@ export class AuthModule extends BaseModule { }).log(); } - console.log(configuration); - const { email, showUI = true, redirectURI, variation } = configuration; + const { email, showUI = true, redirectURI, overrides } = configuration; const requestPayload = createJsonRpcRequestPayload( this.sdk.testMode ? MagicPayloadMethod.LoginWithMagicLinkTestMode : MagicPayloadMethod.LoginWithMagicLink, - [{ email, showUI, redirectURI, variation }], + [{ email, showUI, redirectURI, overrides }], ); return this.request(requestPayload); } @@ -79,10 +78,10 @@ export class AuthModule extends BaseModule { * of 15 minutes) */ public loginWithEmailOTP(configuration: LoginWithEmailOTPConfiguration) { - const { email, showUI, deviceCheckUI, variation } = configuration; + const { email, showUI, deviceCheckUI, overrides } = configuration; const requestPayload = createJsonRpcRequestPayload( this.sdk.testMode ? MagicPayloadMethod.LoginWithEmailOTPTestMode : MagicPayloadMethod.LoginWithEmailOTP, - [{ email, showUI, deviceCheckUI, variation }], + [{ email, showUI, deviceCheckUI, overrides }], ); const handle = this.request(requestPayload); if (!deviceCheckUI && handle) { diff --git a/packages/@magic-sdk/types/src/modules/auth-types.ts b/packages/@magic-sdk/types/src/modules/auth-types.ts index bfb9f312f..d1923f75d 100644 --- a/packages/@magic-sdk/types/src/modules/auth-types.ts +++ b/packages/@magic-sdk/types/src/modules/auth-types.ts @@ -24,7 +24,9 @@ export interface LoginWithMagicLinkConfiguration { * from their dashboard. The default Magic loginWithMagicLink email will be * overriden when a variation is passed here. */ - variation?: string; + overrides?: { + variation?: string; + }; } export interface LoginWithSmsConfiguration { @@ -67,7 +69,9 @@ export interface LoginWithEmailOTPConfiguration { * from their dashboard. The default Magic loginWithOTP email will be * overriden when a variation is passed here. */ - variation?: string; + overrides?: { + variation?: string; + }; } /** From 2a91c21e658e15d7d29a0c2bc770d9653bc7479d Mon Sep 17 00:00:00 2001 From: Chris Dakin Date: Wed, 11 Oct 2023 14:50:32 -0400 Subject: [PATCH 5/6] Fixes tests --- .../test/spec/modules/auth/loginWithEmailOTP.spec.ts | 6 +++--- .../test/spec/modules/auth/loginWithMagicLink.spec.ts | 8 +++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts index 6f834cc6a..4f19eb97e 100644 --- a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts +++ b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithEmailOTP.spec.ts @@ -37,16 +37,16 @@ test('Generates JSON RPC request payload with `showUI: false` parameter', async expect(requestPayload.params).toEqual([{ email: expectedEmail, showUI: false }]); }); -test('Generates JSON RPC request payload with `variation` parameter', async () => { +test('Generates JSON RPC request payload with `overrides` parameter', async () => { const magic = createMagicSDK(); magic.auth.request = jest.fn(); - await magic.auth.loginWithEmailOTP({ email: expectedEmail, variation: 'my custom template' }); + await magic.auth.loginWithEmailOTP({ email: expectedEmail, overrides: { variation: 'my custom template' } }); const requestPayload = magic.auth.request.mock.calls[0][0]; expect(requestPayload.jsonrpc).toBe('2.0'); expect(requestPayload.method).toBe(MagicPayloadMethod.LoginWithEmailOTP); - expect(requestPayload.params).toEqual([{ email: expectedEmail, variation: 'my custom template' }]); + expect(requestPayload.params).toEqual([{ email: expectedEmail, overrides: { variation: 'my custom template' } }]); }); test('If `testMode` is enabled, testing-specific RPC method is used', async () => { diff --git a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts index ec74a33f4..a45ed491c 100644 --- a/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts +++ b/packages/@magic-sdk/provider/test/spec/modules/auth/loginWithMagicLink.spec.ts @@ -48,16 +48,18 @@ test('Generates JSON RPC request payload with `redirectURI` parameter', async () expect(requestPayload.params).toEqual([{ email: 'test', showUI: true, redirectURI: 'helloworld' }]); }); -test('Generates JSON RPC request payload with `variation` parameter', async () => { +test('Generates JSON RPC request payload with `overrides` parameter', async () => { const magic = createMagicSDK(); magic.auth.request = jest.fn(); - await magic.auth.loginWithMagicLink({ email: 'test', showUI: true, variation: 'my custom template' }); + await magic.auth.loginWithMagicLink({ email: 'test', showUI: true, overrides: { variation: 'my custom template' } }); const requestPayload = magic.auth.request.mock.calls[0][0]; expect(requestPayload.jsonrpc).toBe('2.0'); expect(requestPayload.method).toBe(MagicPayloadMethod.LoginWithMagicLink); - expect(requestPayload.params).toEqual([{ email: 'test', showUI: true, variation: 'my custom template' }]); + expect(requestPayload.params).toEqual([ + { email: 'test', showUI: true, overrides: { variation: 'my custom template' } }, + ]); }); test('If `testMode` is enabled, testing-specific RPC method is used', async () => { From e3728d559c6815c6a45c03c10f84fbf3186bec59 Mon Sep 17 00:00:00 2001 From: Chris Dakin Date: Wed, 18 Oct 2023 19:14:14 -0400 Subject: [PATCH 6/6] Fixes yarn --- yarn.lock | 80 +++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/yarn.lock b/yarn.lock index a0074b010..88bc76892 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2817,7 +2817,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/algorand@workspace:packages/@magic-ext/algorand" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2826,8 +2826,8 @@ __metadata: resolution: "@magic-ext/aptos@workspace:packages/@magic-ext/aptos" dependencies: "@aptos-labs/wallet-adapter-core": ^2.2.0 - "@magic-sdk/commons": ^16.1.1 - "@magic-sdk/provider": ^20.1.1 + "@magic-sdk/commons": ^17.0.0 + "@magic-sdk/provider": ^21.0.0 aptos: ^1.8.5 peerDependencies: "@aptos-labs/wallet-adapter-core": ^2.2.0 @@ -2839,7 +2839,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/auth@workspace:packages/@magic-ext/auth" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2847,7 +2847,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/avalanche@workspace:packages/@magic-ext/avalanche" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2855,7 +2855,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/bitcoin@workspace:packages/@magic-ext/bitcoin" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2863,7 +2863,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/conflux@workspace:packages/@magic-ext/conflux" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2871,7 +2871,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/cosmos@workspace:packages/@magic-ext/cosmos" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2879,7 +2879,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/ed25519@workspace:packages/@magic-ext/ed25519" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2887,7 +2887,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/flow@workspace:packages/@magic-ext/flow" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 "@onflow/fcl": ^1.4.1 "@onflow/types": ^1.1.0 peerDependencies: @@ -2900,7 +2900,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/gdkms@workspace:packages/@magic-ext/gdkms" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 "@magic-sdk/types": ^17.0.2 "@peculiar/webcrypto": ^1.4.3 languageName: unknown @@ -2910,7 +2910,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/harmony@workspace:packages/@magic-ext/harmony" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2928,7 +2928,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/icon@workspace:packages/@magic-ext/icon" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2936,15 +2936,15 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/near@workspace:packages/@magic-ext/near" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft -"@magic-ext/oauth@^14.1.2, @magic-ext/oauth@workspace:packages/@magic-ext/oauth": +"@magic-ext/oauth@^15.0.0, @magic-ext/oauth@workspace:packages/@magic-ext/oauth": version: 0.0.0-use.local resolution: "@magic-ext/oauth@workspace:packages/@magic-ext/oauth" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 "@types/crypto-js": ~3.1.47 crypto-js: ^3.3.0 languageName: unknown @@ -2954,7 +2954,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/oidc@workspace:packages/@magic-ext/oidc" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2962,7 +2962,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/polkadot@workspace:packages/@magic-ext/polkadot" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -2970,7 +2970,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/react-native-bare-oauth@workspace:packages/@magic-ext/react-native-bare-oauth" dependencies: - "@magic-sdk/react-native-bare": ^21.1.1 + "@magic-sdk/react-native-bare": ^22.0.0 "@magic-sdk/types": ^10.0.1 "@types/crypto-js": ~3.1.47 crypto-js: ^3.3.0 @@ -2986,7 +2986,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/react-native-expo-oauth@workspace:packages/@magic-ext/react-native-expo-oauth" dependencies: - "@magic-sdk/react-native-expo": ^21.1.1 + "@magic-sdk/react-native-expo": ^22.0.0 "@magic-sdk/types": ^10.0.0 "@types/crypto-js": ~3.1.47 crypto-js: ^3.3.0 @@ -3001,7 +3001,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/solana@workspace:packages/@magic-ext/solana" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -3009,7 +3009,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/taquito@workspace:packages/@magic-ext/taquito" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -3017,7 +3017,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/terra@workspace:packages/@magic-ext/terra" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -3025,7 +3025,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/tezos@workspace:packages/@magic-ext/tezos" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -3033,7 +3033,7 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/webauthn@workspace:packages/@magic-ext/webauthn" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft @@ -3041,15 +3041,15 @@ __metadata: version: 0.0.0-use.local resolution: "@magic-ext/zilliqa@workspace:packages/@magic-ext/zilliqa" dependencies: - "@magic-sdk/commons": ^16.1.1 + "@magic-sdk/commons": ^17.0.0 languageName: unknown linkType: soft -"@magic-sdk/commons@^16.1.1, @magic-sdk/commons@workspace:packages/@magic-sdk/commons": +"@magic-sdk/commons@^17.0.0, @magic-sdk/commons@workspace:packages/@magic-sdk/commons": version: 0.0.0-use.local resolution: "@magic-sdk/commons@workspace:packages/@magic-sdk/commons" dependencies: - "@magic-sdk/provider": ^20.1.1 + "@magic-sdk/provider": ^21.0.0 "@magic-sdk/types": ^17.0.2 peerDependencies: "@magic-sdk/provider": ">=18.6.0" @@ -3074,12 +3074,12 @@ __metadata: "@babel/core": ^7.9.6 "@babel/plugin-proposal-optional-chaining": ^7.9.0 "@babel/runtime": ^7.9.6 - "@magic-ext/oauth": ^14.1.2 - magic-sdk: ^20.1.1 + "@magic-ext/oauth": ^15.0.0 + magic-sdk: ^21.0.0 languageName: unknown linkType: soft -"@magic-sdk/provider@^20.1.1, @magic-sdk/provider@workspace:packages/@magic-sdk/provider": +"@magic-sdk/provider@^21.0.0, @magic-sdk/provider@workspace:packages/@magic-sdk/provider": version: 0.0.0-use.local resolution: "@magic-sdk/provider@workspace:packages/@magic-sdk/provider" dependencies: @@ -3096,7 +3096,7 @@ __metadata: languageName: unknown linkType: soft -"@magic-sdk/react-native-bare@^21.1.1, @magic-sdk/react-native-bare@workspace:packages/@magic-sdk/react-native-bare": +"@magic-sdk/react-native-bare@^22.0.0, @magic-sdk/react-native-bare@workspace:packages/@magic-sdk/react-native-bare": version: 0.0.0-use.local resolution: "@magic-sdk/react-native-bare@workspace:packages/@magic-sdk/react-native-bare" dependencies: @@ -3104,8 +3104,8 @@ __metadata: "@babel/core": ^7.15.0 "@babel/plugin-transform-flow-strip-types": ^7.14.5 "@babel/runtime": ~7.10.4 - "@magic-sdk/commons": ^16.1.1 - "@magic-sdk/provider": ^20.1.1 + "@magic-sdk/commons": ^17.0.0 + "@magic-sdk/provider": ^21.0.0 "@magic-sdk/types": ^17.0.2 "@react-native-async-storage/async-storage": ^1.15.5 "@types/lodash": ^4.14.158 @@ -3132,7 +3132,7 @@ __metadata: languageName: unknown linkType: soft -"@magic-sdk/react-native-expo@^21.1.1, @magic-sdk/react-native-expo@workspace:packages/@magic-sdk/react-native-expo": +"@magic-sdk/react-native-expo@^22.0.0, @magic-sdk/react-native-expo@workspace:packages/@magic-sdk/react-native-expo": version: 0.0.0-use.local resolution: "@magic-sdk/react-native-expo@workspace:packages/@magic-sdk/react-native-expo" dependencies: @@ -3140,8 +3140,8 @@ __metadata: "@babel/core": ^7.15.0 "@babel/plugin-transform-flow-strip-types": ^7.14.5 "@babel/runtime": ~7.10.4 - "@magic-sdk/commons": ^16.1.1 - "@magic-sdk/provider": ^20.1.1 + "@magic-sdk/commons": ^17.0.0 + "@magic-sdk/provider": ^21.0.0 "@magic-sdk/types": ^17.0.2 "@react-native-async-storage/async-storage": ^1.15.5 "@types/lodash": ^4.14.158 @@ -12827,15 +12827,15 @@ fsevents@^2.3.2: languageName: unknown linkType: soft -"magic-sdk@^20.1.1, magic-sdk@workspace:packages/magic-sdk": +"magic-sdk@^21.0.0, magic-sdk@workspace:packages/magic-sdk": version: 0.0.0-use.local resolution: "magic-sdk@workspace:packages/magic-sdk" dependencies: "@babel/core": ^7.9.6 "@babel/plugin-proposal-optional-chaining": ^7.9.0 "@babel/runtime": ^7.9.6 - "@magic-sdk/commons": ^16.1.1 - "@magic-sdk/provider": ^20.1.1 + "@magic-sdk/commons": ^17.0.0 + "@magic-sdk/provider": ^21.0.0 "@magic-sdk/types": ^17.0.2 localforage: ^1.7.4 localforage-driver-memory: ^1.0.5