Archived Content from Web3Auth Community
This topic was originally posted by ArtemFn on 3/24/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.
Hello!
I’m trying to implement SFA, but get same error “Unable to resolve enough promises.”
at http://localhost:5173/node_modules/.vite/deps/@web3auth_single-factor-auth.js?v=090b000f:32889:20
- errors: (5) [undefined, undefined, undefined, undefined, undefined]
- predicate: “could not derive private key”
- responses: array of 5 responses with results.keys array(with some data)
Basic flow with custom JWT works well with same verifier and chains
What i do:
- create verifier for custom JWT(used the same for basic flow)
- get instance of Web3AuthSFA(from @web3auth/single-factor-auth) and init
- get JWT from my provider(backend for now), parse it to get id field(sub) and call
web3authSFA.connect({
verifier: “nb-custom”,
idToken: accessToken,
verifierId: decodedJWT.sub,
});
when i got error
- SDK Version: 5.1.0
- Verifier Details:
- Verifier Name: nb-custom
- JWKS Endpoint: https://9b86-91-72-52-210.eu.ngrok.io/.well-known/jwks.json
- Sample idToken(JWT): eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYW1laWQiOiJmZDVmZDlhNmRmNzM0NmQ0ODdkNGRmN2U4MTU0ZTI3MCIsInN1YiI6ImFkbWluQGVtYWlsLmNvbSIsIm5iZiI6MTY3OTY3MDc4MiwiZXhwIjoxNjc5NjcxMTQyLCJpYXQiOjE2Nzk2NzA3ODIsImlzcyI6Ik5mdFN5bmNJc3N1ZXIiLCJhdWQiOiJOZnRTeW5jQXVkaWVuY2UifQ.ducChmq1zZF9gxsK-thAXCJmJjcNH8n-ajaSNnEK9algMZjASaEk17MO3SBjOm9q9Szh1WEqX3b3iLBjDI-00JCHhKO7GK6hlfGSkP8HZ9ElTaGhmaGpjVAWStt3T1wZYyRvANaIp8Lr6Rqr1BSNZ5SvfK2VaemIJ9qvX-RcQIz6VT_FLpScQFzZppX6jsEaYUZS9K2lNOOUTzgUUKQ8VVa20bt9v1E5uA9EMTzpSijGJcZC5z6v7ft52YsQzZmhXbQalDJSNc2d3eIpVomAUVkACsTQeV8W7Xmkmdo8VnZpJutmUzscU5wZeBuBqPU1g3eXpbIzhK0NvoF1fHaugw