Web3 auth no model with aws cognito email password login giving data not available error

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!!

hi @jinalipabasara

I understand how important this is, and I want to ensure you receive the most accurate and helpful information possible. I’ll provide you with a precise answer as soon as possible.

Thank you for your patience

Hi @jinalipabasara,

Would you mind giving our guide a try? You can find it here: Using AWS Cognito with Web3Auth Plug and Play No Modal SDK | Web3Auth

If the error persists after following the guide, please feel free to reach out to me again. I’m here to help!

Hello Thanks for the update, let me try that also.

Hi @TomTom , i checked the guide you recommended. I’m using implicit grant type and if i want to pass only the ID token I’m getting from the BE to the connectTo() is it possible in this case? something like the below? I’m using aws user pools and I’m getting the id token from the BE.

cz in here it seems like Web3Auth Plug and Play No Modal SDK is handling that for us.

Hi @jinalipabasara
Is this line what you are looking for in our custom authentication no-modal example ?