Unable to get custom JWT verifier flow working #779
edwardysun
announced in
Help
Replies: 1 comment
-
Hey @edwardysun Can you try to run this in a different browser or try removing the local & session storage from the Application tab of the developer menu inside the browser? Also, please update this in your code: const web3authProvider = await web3auth.connectTo("openlogin", {
loginProvider: "jwt",
extraLoginOptions: {
id_token: await getIdToken(),
verifierIdField: "sub",
domain: "http://localhost:3000",
response_type: "token",
// scope: "", // e.g. email openid
},
}); With the below code: const web3authProvider = await web3auth.connectTo("openlogin", {
loginProvider: "jwt",
extraLoginOptions: {
id_token: await getIdToken(),
verifierIdField: "sub",
domain: "http://localhost:3000",
},
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there, I'm trying to use your Custom JWT Login demo. I've set up the Custom Verifier (on testnet) on Dashboard. The verifier is fully deployed. I updated the client ID and the backend key ID (when signing). I continue to get the error "WalletLoginError: Failed to connect with walletFailed to login with openlogin" when calling "await web3auth.connectTo". Could someone let me know what I may be missing?
Client-side code:
Server-side:
A few other notes on what I did:
Thank you for your help
Beta Was this translation helpful? Give feedback.
All reactions