web3auth_flutter 1.0.1 copy "web3auth_flutter: ^1.0.1" to clipboard
web3auth_flutter: ^1.0.1 copied to clipboard

outdated

Flutter SDK for Torus Web3Auth (Web3Auth)

web3auth_flutter #

Flutter SDK for Torus Web3Auth (Web3Auth)

Installation #

dependencies:
  web3auth_flutter: ^1.0.1

or

flutter pub add web3auth_flutter

Please refer to the native SDKs for platform-specific configuration.

For iOS, the redirectUrl parameter is fixed, which is \(bundleId)://auth, and does not need to be added as a iOS Custom URL Scheme.

For Android, the redirectUrl parameter is specifiable, and has to be added into the AndroidManifest.xml.

Usage #

Refer to the demo app for more detailed example.

// Initialization
 await Web3AuthFlutter.init(Web3AuthOptions(
        clientId:
            'BCtbnOamqh0cJFEUYA0NB5YkvBECZ3HLZsKfvSRBvew2EiiKW3UxpyQASSR0artjQkiUOCHeZ_ZeygXpYpxZjOs',
        network: Network.testnet,
        redirectUrl: Uri.parse('torusapp://org.torusresearch.flutter.web3authexample'),
        whiteLabel: WhiteLabelData(
            dark: true, name: "Web3Auth Flutter App", theme: themeMap)));
```

// Login
final Web3AuthResponse response = await Web3AuthFlutter.login(LoginParams(loginProvider: Provider.google));

// Logout
await Web3AuthFlutter.logout();

License #

MIT

17
likes
0
points
1.27k
downloads

Publisher

verified publisherweb3auth.io

Weekly Downloads

Flutter SDK for Torus Web3Auth (Web3Auth)

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on web3auth_flutter