Our client id: BPqtX-SHEG3SFvNyBu6dJZw2fKNyHb56l-0PBNTfDbdVTrfMqCJDB6gM5V9dhUhxUnBaKUd8ZfDZ-ZsLweIBMIk
We are using custom auth with JWT.
You can try it here: https://staging.amped.bio/
Sign in and go to “My Wallet” page.
Relevant code:
Our client id: BPqtX-SHEG3SFvNyBu6dJZw2fKNyHb56l-0PBNTfDbdVTrfMqCJDB6gM5V9dhUhxUnBaKUd8ZfDZ-ZsLweIBMIk
We are using custom auth with JWT.
You can try it here: https://staging.amped.bio/
Sign in and go to “My Wallet” page.
Relevant code:
Thanks for sharing the details and links, John! Here’s a summary of your issue for the support team, along with some initial troubleshooting steps and relevant documentation.
Error Message:
Wallet connector is not ready yet, Please wait for init function to resolve before calling connect/connectTo
SDK Details:
@web3auth/modal
(based on code and docs referenced)@web3auth/modal
from your package.json
.)web3auth.init()
may not have completed before calling connect
or connectTo
.Ensure Proper Initialization
await web3auth.init()
is fully resolved before any calls to connect
or connectTo
.init()
before exposing the Web3Auth instance.Reference:
Web3Auth Initialization Docs
Check for Race Conditions
connect
is triggered by a UI action, ensure the component is not rendering or calling connect before the provider/context is ready.Debug Logging
init()
and before connect
to confirm the sequence.SDK Version
@web3auth/modal
you are using, as there may be known issues or fixes in recent releases.@web3auth/modal
from your package.json
.If you can confirm your SDK version and share any relevant initialization code (if different from the repo), that will help the support team reproduce and resolve the issue faster.
Let us know if you have any more details or if you try the above steps and still face the issue!
Note: This response was generated by an AI bot and may require further verification. The Web3Auth support team has tracked this issue and will be responding as soon as possible.
Additionally, we would recommend you to join our biweekly Office Hours to get this resolved even faster. Web3Auth Developer Office Hours
How can we ensure that init was waited for if there is no init in the code? We followed the official tutorial, which also doesn’t wait for any init: web3auth-examples/custom-authentication/single-connection/custom-jwt-example at main · Web3Auth/web3auth-examples · GitHub
Can someone please help? The code worked for a day, and now it just keeps giving this error. Without receiving support, unfortunately, we will have to change libraries.
Can you share the code for the checkConnection method that’s throwing the error?
i tried searching through your codebase but wasn’t able to find it, plus your staging domain asks for an email + password login.
That error comes from the library
You can sign in with this demo user:
demo@demo.demo
Demo@123
Then go to My Wallet option on menu and click on connect wallet.
I managed to resolve this issue. It’s not documented anywhere that passwordless email must be enabled to use JWT. And the error displayed in the console doesn’t help at all.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.