File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Thirdweb/Thirdweb.Wallets/InAppWallet/EmbeddedWallet.Authentication Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -57,10 +57,11 @@ internal Server(ThirdwebClient client, IThirdwebHttpClient httpClient)
57
57
internal override async Task < List < LinkedAccount > > LinkAccountAsync ( string currentAccountToken , string authTokenToConnect )
58
58
{
59
59
var uri = MakeUri2024 ( "/account/connect" ) ;
60
- var content = MakeHttpContent ( new { accountAuthTokenToConnect = authTokenToConnect } ) ;
61
- this . _httpClient . AddHeader ( "Authorization" , $ "Bearer iaw-auth-token:{ currentAccountToken } ") ;
62
- var response = await this . _httpClient . PostAsync ( uri . ToString ( ) , content ) . ConfigureAwait ( false ) ;
63
- this . _httpClient . RemoveHeader ( "Authorization" ) ;
60
+ var request = new HttpRequestMessage ( HttpMethod . Post , uri )
61
+ {
62
+ Content = MakeHttpContent ( new { accountAuthTokenToConnect = authTokenToConnect } )
63
+ } ;
64
+ var response = await this . SendHttpWithAuthAsync ( request , currentAccountToken ) . ConfigureAwait ( false ) ;
64
65
await CheckStatusCodeAsync ( response ) . ConfigureAwait ( false ) ;
65
66
66
67
var res = await DeserializeAsync < AccountConnectResponse > ( response ) . ConfigureAwait ( false ) ;
You can’t perform that action at this time.
0 commit comments