5.3.5 • Published 4 months ago

@0xsequence/immutable-connector v5.3.5

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 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

4 months ago

5.3.4

5 months ago

5.3.3

5 months ago

5.3.2

5 months ago

5.3.1

5 months ago

5.3.0

5 months ago

5.2.4

5 months ago

5.2.3

5 months ago

5.2.2

5 months ago

5.2.1

5 months ago

5.2.0

5 months ago

5.1.1

6 months ago

5.1.0

6 months ago