Had some issues in integrating the Web3Auth Flutter SDK at the Hacker House Dilli. Listing all the points and issues below:
1) The installation points to a now unavailable page:
What it is: https://github.com/torusresearch/web3auth-flutter-sdk.git
What it should be: https://github.com/web3auth/web3auth-flutter-sdk
Can also maybe add directly adding web3auth_flutter: ^1.0.0
to pubspec.yaml
.
2) The initPlatformState
function should be updated on the initialize page:
Future<void> initPlatformState() async { // Initialization await Web3AuthFlutter.init( Web3AuthOptions( clientId: "YOUR WEB3AUTH CLIENT ID FROM DASHBOARD", network: Network.testnet, ), ); }
- Similarly the Web3AuthResponse doc
final Web3AuthResponse response = await Web3AuthFlutter.login( LoginParams(loginProvider: Provider.google));
- Lastly, getting an error when running the project
This is probably due to some Android configuration issues.
Error:
cc @shahbaz17
Originally posted by: adityathakurxd
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/575