|
34 | 34 |
|
35 | 35 | #endregion |
36 | 36 |
|
37 | | -#region User Wallets |
38 | | - |
39 | | -var inAppWalletOAuth = await InAppWallet.Create(client: client, authProvider: AuthProvider.Google); |
40 | | -if (!await inAppWalletOAuth.IsConnected()) |
41 | | -{ |
42 | | - _ = await inAppWalletOAuth.LoginWithOauth( |
43 | | - isMobile: false, |
44 | | - (url) => |
45 | | - { |
46 | | - var psi = new ProcessStartInfo { FileName = url, UseShellExecute = true }; |
47 | | - _ = Process.Start(psi); |
48 | | - }, |
49 | | - "thirdweb://", |
50 | | - new InAppWalletBrowser() |
51 | | - ); |
52 | | -} |
53 | | -var inAppWalletOAuthAddress = await inAppWalletOAuth.GetAddress(); |
54 | | -Console.WriteLine($"InAppWallet OAuth address: {inAppWalletOAuthAddress}"); |
55 | | - |
56 | | -var inAppWalletAuthDetails = inAppWalletOAuth.GetUserAuthDetails(); |
57 | | -Console.WriteLine($"InAppWallet OAuth auth details: {JsonConvert.SerializeObject(inAppWalletAuthDetails, Formatting.Indented)}"); |
| 37 | +#region User Wallets (Social Auth Example) |
| 38 | + |
| 39 | +// var inAppWalletOAuth = await InAppWallet.Create(client: client, authProvider: AuthProvider.Google); |
| 40 | +// if (!await inAppWalletOAuth.IsConnected()) |
| 41 | +// { |
| 42 | +// _ = await inAppWalletOAuth.LoginWithOauth( |
| 43 | +// isMobile: false, |
| 44 | +// (url) => |
| 45 | +// { |
| 46 | +// var psi = new ProcessStartInfo { FileName = url, UseShellExecute = true }; |
| 47 | +// _ = Process.Start(psi); |
| 48 | +// }, |
| 49 | +// "thirdweb://", |
| 50 | +// new InAppWalletBrowser() |
| 51 | +// ); |
| 52 | +// } |
| 53 | +// var inAppWalletOAuthAddress = await inAppWalletOAuth.GetAddress(); |
| 54 | +// Console.WriteLine($"InAppWallet OAuth address: {inAppWalletOAuthAddress}"); |
| 55 | + |
| 56 | +// var inAppWalletAuthDetails = inAppWalletOAuth.GetUserAuthDetails(); |
| 57 | +// Console.WriteLine($"InAppWallet OAuth auth details: {JsonConvert.SerializeObject(inAppWalletAuthDetails, Formatting.Indented)}"); |
58 | 58 |
|
59 | 59 | #endregion |
60 | 60 |
|
|
0 commit comments