Hello guys,
I am trying to implement web3 custom authentication using aws cognito and I’m getting the “Invalid loginProvider or custom loginProvider data not available error”.
i have an aws cognito user pool set up for email/password and Google logins. for testing purposes, I’m generating the id token and passing it to the connectTo() as below.
-
SDK Version:
“@web3auth/base”: “^8.1.0”,
“@web3auth/no-modal”: “^8.1.0”,
“@web3auth/openlogin-adapter”: “^8.1.0”,
“@web3auth/solana-provider”: “^8.1.0”, -
Browser Console Screenshots:
-
If the issue is related to Custom Authentication, please include the following information
-
Verifier Name: cognito-thirdpay
-
JWKS Endpoint: https://cognito-idp.eu-central-1.amazonaws.com/eu-central-1_VxnbMqhaw/.well-known/jwks.json
-
Sample idToken (JWT): eyJraWQiOiJwTnU5UzJyY3RPR1ZFQW5CYjFzSjUyRW1ISmxYNTZEY0tQQjJzc1A4ZW1rPSIsImFsZyI6IlJTMjU2In0.eyJzdWIiOiJmMTdhZjE5Yy05YTU5LTQwMGEtOGZkNy0xZDZkZjRlNTNmMjEiLCJlbWFpbF92ZXJpZmllZCI6dHJ1ZSwiaXNzIjoiaHR0cHM6XC9cL2NvZ25pdG8taWRwLmV1LWNlbnRyYWwtMS5hbWF6b25hd3MuY29tXC9ldS1jZW50cmFsLTFfVnhuYk1xaGF3IiwiY29nbml0bzp1c2VybmFtZSI6ImYxN2FmMTljLTlhNTktNDAwYS04ZmQ3LTFkNmRmNGU1M2YyMSIsIm9yaWdpbl9qdGkiOiI1NGZhNmY3Mi02ZGNiLTQ2ZmQtOTE2NC1hMDI2MjEwOTBmODYiLCJhdWQiOiI3NGE4b2hsdmRzOGcwYWd2ZGhsMGltZDFnZSIsImV2ZW50X2lkIjoiNTdhNWVjNDktZjA2ZS00YmMwLTg1MmEtMWU4NDA1MGZjNDU4IiwidG9rZW5fdXNlIjoiaWQiLCJhdXRoX3RpbWUiOjE3MTMyMDc3NzQsIm5hbWUiOiJqaW5hbGkiLCJleHAiOjE3MTMyMTEzNzQsImN1c3RvbTp1c2VyX3R5cGUiOiJhZmZpbGlhdGVfdXNlciIsImlhdCI6MTcxMzIwNzc3NCwianRpIjoiZTA1ZTBiNjktZjY0NS00YjM5LTgxNDUtOWNhNzY4NjhmNjI1IiwiZW1haWwiOiJqaW5hbGlAYXBpdW0uaW8ifQ.swJQN2eQ6lf9pLtSZqTnGkRMdcuTA4OTFJ6gp_iFIgmtbCTYHclOy1ZjNtybFXGbCSN2Hk_J26nPBNofkC7yOgdAP370vE-Wakr3I-G4wtW7y8qRW8YEHkomOcHWY_B5s6RAgfhjE4z6lFucB-LiyjI0-CRiistMzA-1GhwREIjRagEcT1vOsKfFwAfA-lvQPhBswNOw5cVa7eV6C9v9mHNiiW3yOYtiZE1b3ZwquuoniIQ7V1w3fezpQxl1o9z7CF-01Rs_wQc-f9APTwRTwmrjLeqtZ6Uy19yy0GKCaNahCXl5Ms_kX_NVZCY7xg38hxypDJ92QIiU4lDu9hHhkg
-
Also, kindly provide the Web3Auth initialization and login code snippet below. This will help us better understand your issue and provide you with the necessary assistance.
init method
Login method
not sure what im doing wrong here and i also checked these github repos as well.
web3auth-pnp-examples-custom-jwt-no-modal-example
Thanks!!