my plan is base.
i have my authentication server and i want to connect with web3auth using with custom jwt.
const web3authProvider = await this.web3auth.connectTo(WALLET_ADAPTERS.AUTH, {
loginProvider: “jwt”,
extraLoginOptions: {
id_token: accessToken,
verifierIdField: “sub”,
domain: window.location.origin,
redirectUrl: window.location.origin, <— can i set redirect uri
},
});
Hello 劉鍾敏,
It’s great to hear that you’re working with the Web3Auth PnP Web SDK and planning to use custom JWT authentication.
To set up a redirect URI when using the connectTo
method with custom JWT, you can indeed define a redirectUrl
within your extraLoginOptions
. This parameter allows you to specify where users should be redirected after the login process.
Since you are on the base plan, ensure that any URI you wish to use for redirection is both valid and properly configured in your authentication server setup. Please also confirm this redirection URI is added to the allowlist within your Web3Auth project settings to avoid any issues.
For more detailed guidance on setting up custom JWT authentication with Web3Auth, you can refer to the Web3Auth documentation, particularly the section on custom authentication.
If you encounter any issues or have any specific implementation questions, feel free to share the details or any errors you encounter!
Good luck with your integration!
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