Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Signed-off-by: Firekeeper <[email protected]>
  • Loading branch information
0xFirekeeper authored Jun 7, 2024
1 parent 85f0d3d commit aa44f20
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,22 @@ Console.WriteLine($"InAppWallet: {await inAppWallet.GetAddress()}");
```csharp
var inAppWallet = await InAppWallet.Create(client, oauthProvider: OAuthProvider.Google);

if (!await inAppWallet.IsConnected()) {
var loginResult = await inAppWallet.Login();
Console.WriteLine($"OAuth login result: {loginResult}");
}
// Windows console app example
var address = await inAppWallet.LoginWithOauth(
isMobile: false,
browserOpenAction: (url) =>
{
var psi = new ProcessStartInfo { FileName = url, UseShellExecute = true };
_ = Process.Start(psi);
},
);

// Godot standalone example
var address = await ThirdwebManager.Instance.InAppWallet.LoginWithOauth(
isMobile: OS.GetName() == "Android" || OS.GetName() == "iOS",
browserOpenAction: (url) => OS.ShellOpen(url),
mobileRedirectScheme: "thirdweb://"
);
```

#### Smart Wallets
Expand Down

0 comments on commit aa44f20

Please sign in to comment.