Skip to content

Commit 148df03

Browse files
authored
Steam Login (#102)
1 parent be34729 commit 148df03

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Thirdweb.Console/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@
366366

367367
#region InAppWallet - OAuth
368368

369-
// var inAppWalletOAuth = await InAppWallet.Create(client: client, authProvider: AuthProvider.Google);
369+
// var inAppWalletOAuth = await InAppWallet.Create(client: client, authProvider: AuthProvider.Steam);
370370
// if (!await inAppWalletOAuth.IsConnected())
371371
// {
372372
// _ = await inAppWalletOAuth.LoginWithOauth(

Thirdweb/Thirdweb.Wallets/InAppWallet/EcosystemWallet/EcosystemWallet.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public static async Task<EcosystemWallet> Create(
115115
Thirdweb.AuthProvider.Coinbase => "Coinbase",
116116
Thirdweb.AuthProvider.Github => "Github",
117117
Thirdweb.AuthProvider.Twitch => "Twitch",
118+
Thirdweb.AuthProvider.Steam => "Steam",
118119
Thirdweb.AuthProvider.Default => string.IsNullOrEmpty(email) ? "Phone" : "Email",
119120
_ => throw new ArgumentException("Invalid AuthProvider"),
120121
};
@@ -415,6 +416,7 @@ public async Task<List<LinkedAccount>> LinkAccount(
415416
case "Coinbase":
416417
case "Github":
417418
case "Twitch":
419+
case "Steam":
418420
serverRes = await ecosystemWallet.PreAuth_OAuth(isMobile ?? false, browserOpenAction, mobileRedirectScheme, browser).ConfigureAwait(false);
419421
break;
420422
default:

Thirdweb/Thirdweb.Wallets/InAppWallet/InAppWallet.Types.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ public enum AuthProvider
2222
X,
2323
Coinbase,
2424
Github,
25-
Twitch
25+
Twitch,
26+
Steam
2627
}
2728

2829
/// <summary>

0 commit comments

Comments
 (0)