I’m facing issues with Web3Auth initialization and redirect handling in my Next.js application. Here’s a detailed breakdown of the problem:
SDK Version:
@web3auth/mpc-core-kit: ^3.1.1
@toruslabs/tss-dkls-lib: ^3.0.0
Platform:
Next.js application
Errors Encountered:
On the second call to init, the tkey property is null.
Errors observed when calling handleRedirectResult:
TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
Web3Auth initialization error: CoreKitError: undefined The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
Can anyone help diagnose why tkey is null after initialization on redirect from OAuth and why handleRedirectResult throws these errors? Am I missing something?
Thank you for the detailed breakdown of the issue you’re encountering, CJ. I’ve gathered all the relevant information regarding your error to assist the support team in resolving your issue swiftly.
Summary
SDK Details:
SDK: tKey JS SDK
SDK Version:
@web3auth/mpc-core-kit: ^3.1.1
@toruslabs/tss-dkls-lib: ^3.0.0
Platform:
Platform: Next.js application
Errors Encountered:
On the second call to init, the tkey property is null.
Errors when calling handleRedirectResult:
TypeError: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
Web3Auth initialization error:
CoreKitError: undefined The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined