JWT Error on SFA - react native and react web

i am using sfa for the creation of user wallets, we already have our web application (react-nextjs) and it works, but we are developing the mobile application with react-native, we can connect new users, but when we try to connect old users that already have wallet (that they created on the web) we have this error

[Error: Error occurred while verifying params unable to verify jwt token, [failed to verify jws signature: failed to verify message: crypto/rsa: verification error]]

and the same happens when I try to connect react-native users on web

React

SDK Version:@web3auth/single-factor-auth: ^6.5.0
Verifier Name: win-veri-prod-v2

  • JWKSEndpoint:
    https://api.win.investments/api/v2/auth/jwk
  • Sample idToken (JWT):eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IldpbkludmVzdG1lbnRzV2ViM0F1dGhLSUQifQ.eyJzdWIiOiI3MTkiLCJuYW1lIjpudWxsLCJlbWFpbCI6ImVzdGViYW5Ad2luLmludmVzdG1lbnRzIiwiYXVkIjoiV2luSW52ZXN0bWVudHNXZWIzQXV0aEFVRCIsImlzcyI6IldpbkludmVzdG1lbnRzV2ViM0F1dGhJU1MiLCJpYXQiOjE3MDI2NTEyNjYsImV4cCI6MTcwMzY1MTI2NSwiZW1haWxfdmVyaWZpZWQiOjF9.Xk52wVmoqiFlxBTsK6f_8sdumSHP52Xat41tszZHCoEIK0y2e8o3Cu_pNqneZoO7Gc-oCctGiXEC3CS9S-_JLlcJJ4w9wxNgqQt6b3ktBUJ6N2kfkVTA4usUoChmB5jKGo-w-8M8PNrMMzbKVplCiNi0QKPNy79gH75RlEipnlWR9q_zErfc4dvdDPDw2VO1Q3nENZPTcmjGVdWiBrH1uvwMs-aWoXzdpTH2BcwtkCeJ0wS2l8ZpNRzA96MqAoRqHphc2mT8f-LhMv0MFzjSepYrKPzWNQmMMd5fUsIQQVf14mMxNuzyKBNKXJuKu4kTp0PZkaJpxFRvinkinNRNP2SixIinwjahXOHbtaMzRmk-8p8hXD2SEU3UiB_bhXcIn0pmL0dY3Qac2NgIF9IwWvW6pwDZq5uIKz67FUzus6JxwUc44dHzZCwqfsPKGR_fLvwLPDqshBX_kBxkG8gY-yzOw6BkOR7UF04QBcPET8EHStlfdSHmEutQIAaK1asqZicMRxZUNAChPmwRaT3G_FTzUyNZBMkJoF4QoVoL0GkcCsyavA5PFqw8D0jl1Lqwn1JKYFXiABai6ZJ77clPcXqJ94sNvUQXyEJH4etkThEFpNNQVooszXNCqAjFltcIpD2ZS36hoqg8aJ3oUDLoIZWshz20wm5Kb36h4BbKLSs

React native

SDK Version:@web3auth/single-factor-auth-react-native: ^2.0.0
Verifier Name: win-veri-prod-v2

  • JWKSEndpoint:
    https://api.win.investments/api/v2/auth/jwk
  • Sample idToken (JWT):eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IldpbkludmVzdG1lbnRzV2ViM0F1dGhLSUQifQ.eyJzdWIiOiI3MTkiLCJuYW1lIjpudWxsLCJlbWFpbCI6ImVzdGViYW5Ad2luLmludmVzdG1lbnRzIiwiYXVkIjoiV2luSW52ZXN0bWVudHNXZWIzQXV0aEFVRCIsImlzcyI6IldpbkludmVzdG1lbnRzV2ViM0F1dGhJU1MiLCJpYXQiOjE3MDI2NTE0NDAsImV4cCI6MTcwMzY1MTQzOSwiZW1haWxfdmVyaWZpZWQiOjF9.JV2uTSZ2xmXgchBuvBq-cA_0tf6kltx-zf6G-oO0MKG3GGYMWJBF-zol7gXPMoG5HuQQjR_4iqn5b9mjijg8jaRXJl0V-SiHcDQbU9qfjjjkz-MswoJWtiQlk3JnzC3fJwiLZTjSKCIflQlTbtKX3V6gTPKPb69rGMAKUgE7JFVD5dkORFp4JYAFqe7Gi2qpR6tnwOnkELpJdd-n-9vyJI6fKcbOZStRYHSo12pgY8V0otkp7BML-J5uCde_hzeg0ZQWyT0qWTFPoWU1NjQKCZnShteGktDRfQXbYrHaL7zp-zasaSL-qHCnFjlaldWPrpIA3JsMZR4iWY7wlsBSt71BpMESJyx4KLnCHPNRRQzLDInQhmZJBEtnzz3o9a7qx9enqGSv7khrQxY3lAGxyPVxEy7jjGWA7pp894bDpY_peDCmzwdx9XTb4WpFdVOKStyBWPAR5dsVBXF0wUzYiKa6U0ChZgqp0-13wfVg-MATlUL7LooklXSbeyj1J7yz1oGpjnCp3CCT-kDESE21qKm8OvQZArABiggvvWL89AmcvRaqWYXgHAhbIjzJcdGza3QE1vkI_lJ61kO25f8Dp7XCi91HiRyRen_lpyerruPs9p0cBDQ9DwAc4pIWpr-1ILp28LL5DYUxFQ8KmteC3jEU_VdWwPd7jwyE9R82eAc

@esteban Thanks for reaching out.

Please find the JWT troubleshooting guide below:

I had already seen that, but there is not the solution to my problem, I reiterate the same logic I have in sdk web, and it works perfectly, the problem is that the wallets created with email from web do not open in SDK react native, and also on the contrary the wallets created or connected in react native do not work on web.

@esteban Thanks for clarifying your scenario.

I have forwarded your issue to our Dev team and we will get back when there is a meaningful update to share.

Could you please let us know how are you getting the idToken? The idToken should have the same Kid as your JWKS. Also, some of the fields in your JWT token are marked private, so we are unable to validate those fields. Response below:

The email address you specified here Nuevo@win.investments , specify all in lowercase as there seems to be a mismatch for the verifierId: email

Hey @esteban,
Were you able to resolve this issue? Please let me know if you require any more assistance.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.