5.3.5 • Published 11 months ago

@0xsequence/immutable-connector v5.3.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 months ago

Immutable connector for Sequence Web-SDK

Installation

To install this package:

npm install @0xsequence/immutable-connector @imtbl/config @imtbl/sdk
# or

pnpm install @0xsequence/immutable-connector @imtbl/config @imtbl/sdk
# or
yarn add @0xsequence/immutable-connector @imtbl/config @imtbl/sdk

Adding the connect

First, an Immutable Passport instance must be created with valid and correctly configured Immutable keys.

Note, that the application will need a callback route configured similarly to this example: https://github.com/immutable/ts-immutable-sdk/blob/main/examples/passport/login-with-nextjs/src/app/redirect/page.tsx

Also, the forceScwDeployBeforeMessageSignature parameter must be set to true for the signing of message to work for new users.

export const passportInstance = new passport.Passport({
  baseConfig: {
    environment: Environment.SANDBOX,
    publishableKey: 'my_publisheable_key'
  },
  forceScwDeployBeforeMessageSignature: true,
  clientId: 'my_client_id',
  redirectUri: `${window.location.origin}/auth/callback`,
  logoutRedirectUri: `${window.location.origin}`,
  audience: 'platform_api',
  scope: 'openid offline_access email transact'
})

Finally, the wallet can be passed down to the web-sdk configuration similarly to other wallets,

immutable({
  passportInstance,
  environment: Environment.SANDBOX
})
5.3.5

11 months ago

5.3.4

11 months ago

5.3.3

11 months ago

5.3.2

11 months ago

5.3.1

12 months ago

5.3.0

12 months ago

5.2.4

12 months ago

5.2.3

12 months ago

5.2.2

12 months ago

5.2.1

1 year ago

5.2.0

1 year ago

5.1.1

1 year ago

5.1.0

1 year ago