TypeError: Cannot destructure property 'baseUrl' of 'e' as it is undefined.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript, typescript
- Domain
- authentication, web-dev
Research direction
Start by reproducing the failure on the deployed domain and inspect the TorusServiceProvider initialization shown in the issue, especially customAuthArgs and the production environment values. Done means the deployed application initializes without the destructuring TypeError while retaining the intended authentication redirect behavior.
Written by the indexing model from the issue text.
Description
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:

on my local it was working fine, but error on production (deployed on domain)
- Dominant language
- TypeScript
- Stars
- 181
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MetaMask/tkey
-
Difficulty 2/5 Under an hour Newbie friendliness 25/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Browser Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-javascript#24577 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
copse-dev/agent-pane#2953 ·
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
anomalyco/models.dev#7701 ·