diff --git a/Thirdweb.Console/Program.cs b/Thirdweb.Console/Program.cs index 9f480aac..55e95b5e 100644 --- a/Thirdweb.Console/Program.cs +++ b/Thirdweb.Console/Program.cs @@ -366,7 +366,7 @@ #region InAppWallet - OAuth -// var inAppWalletOAuth = await InAppWallet.Create(client: client, authProvider: AuthProvider.Google); +// var inAppWalletOAuth = await InAppWallet.Create(client: client, authProvider: AuthProvider.Steam); // if (!await inAppWalletOAuth.IsConnected()) // { // _ = await inAppWalletOAuth.LoginWithOauth( diff --git a/Thirdweb/Thirdweb.Wallets/InAppWallet/EcosystemWallet/EcosystemWallet.cs b/Thirdweb/Thirdweb.Wallets/InAppWallet/EcosystemWallet/EcosystemWallet.cs index ba32ba78..d970763a 100644 --- a/Thirdweb/Thirdweb.Wallets/InAppWallet/EcosystemWallet/EcosystemWallet.cs +++ b/Thirdweb/Thirdweb.Wallets/InAppWallet/EcosystemWallet/EcosystemWallet.cs @@ -115,6 +115,7 @@ public static async Task Create( Thirdweb.AuthProvider.Coinbase => "Coinbase", Thirdweb.AuthProvider.Github => "Github", Thirdweb.AuthProvider.Twitch => "Twitch", + Thirdweb.AuthProvider.Steam => "Steam", Thirdweb.AuthProvider.Default => string.IsNullOrEmpty(email) ? "Phone" : "Email", _ => throw new ArgumentException("Invalid AuthProvider"), }; @@ -415,6 +416,7 @@ public async Task> LinkAccount( case "Coinbase": case "Github": case "Twitch": + case "Steam": serverRes = await ecosystemWallet.PreAuth_OAuth(isMobile ?? false, browserOpenAction, mobileRedirectScheme, browser).ConfigureAwait(false); break; default: diff --git a/Thirdweb/Thirdweb.Wallets/InAppWallet/InAppWallet.Types.cs b/Thirdweb/Thirdweb.Wallets/InAppWallet/InAppWallet.Types.cs index 0abd7d00..ca022877 100644 --- a/Thirdweb/Thirdweb.Wallets/InAppWallet/InAppWallet.Types.cs +++ b/Thirdweb/Thirdweb.Wallets/InAppWallet/InAppWallet.Types.cs @@ -22,7 +22,8 @@ public enum AuthProvider X, Coinbase, Github, - Twitch + Twitch, + Steam } ///