Skip to content

TypeError: Cannot destructure property 'baseUrl' of 'e' as it is undefined. #172

Description

@rashgaroth

Hey, i've been implement this code as well

import TorusServiceProvider from "@tkey/service-provider-torus";
const serviceProvider = new TorusServiceProvider({
        customAuthArgs:{
          baseUrl: `${window.location.origin}/login`,
          enableLogging: false,
          redirectPathName: "auth",
          uxMode: "redirect",
          redirectToOpener: true,
          //proxyContractAddress: "0x4023d2a0D330bF11426B12C6144Cfb96B7fa6183", // details for test net
          network: REACT_APP_TORUS_NETWORK,
          networkUrl: REACT_APP_TORUS_NETWORK_URL
        }
});

then i got this:
image
on my local it was working fine, but error on production (deployed on domain)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions