When asking for help in this category, please make sure to provide the following details:
SDK Version:
Platform:
Browser Console Screenshots:
If the issue is related to Custom Authentication, please include the following information (optional):
We used latest sdk according to your documentation.
We are following error:
There seems to be some bug in the code. Please contact support to fix this.
could not validate redirect, please whitelist your domain: it.csa.csa.mobileCsa://auth for provided clientId BHjYxKYOV8cYV_3USEwq2uDQ5o0zYA-cektSsbaWJqkOobmaMvjsasQ97ovjc4wlk-VSzKm61fHB-xUVe3RteDo at https://dashboard.web3auth.io. Also, this project is on sapphire_devnet network. Please ensure the the used Client ID belongs to this network.
Verifier Name:
JWKS Endpoint:
Sample idToken (JWT):
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.
We already whitelisted it.csa.csa.mobilecsa://auth
PAY ATTENTION:
in the previous error the error says mobileCsa with the C uppercase.
Hi, TomTom
seeems that web3auth takes BUNDLE ID instead of “redirect url”.
According to your documentation
if (Platform.isAndroid) {
redirectUrl = Uri.parse(‘SCHEMA://APPID/auth’);
} else if (Platform.isIOS) {
redirectUrl = Uri.parse(‘it.csa.csa.mobilecsa://auth’);
// com.example.w3aflutter://auth
} else {
throw UnKnownException(‘Unknown platform’);
}
Once we try to log in with ios the error message is
could not validate redirect, please whitelist your domain: it.csa.csa.mobileCsa://auth for provided clientId BHjYxKYOV8cYV_3USEwq2uDQ5o0zYA-cektSsbaWJqkOobmaMvjsasQ97ovjc4wlk-VSzKm61fHB-xUVe3RteDo at https://dashboard.web3auth.io. Also, this project is on sapphire_devnet network. Please ensure the the used Client ID belongs to this network.
BUT
our redirect url for ios is redirectUrl = Uri.parse(‘it.csa.csa.mobilecsa://auth’);
and not
: it.csa.csa.mobileCsa://auth
I would also like to add that we had this error once we migrate from our personal account of web3auth to client’s account.