Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Plugins/Web3AuthSDK/Source/Web3AuthSDK/Private/Web3Auth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ void UWeb3Auth::request(FChainConfig chainConfig, FString method, TArray<FString

web3AuthApi->CreateSession(request, [this, newSessionKey, method, requestParams, path](FString response)
{
UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response);
//UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response);

TSharedPtr<FJsonObject> requestData = MakeShared<FJsonObject>();
requestData->SetStringField(TEXT("method"), method);
Expand Down Expand Up @@ -648,7 +648,7 @@ void UWeb3Auth::setResultUrl(FString hash) {
signResponse.success = jsonObject->GetBoolField(TEXT("success"));
signResponse.result = jsonObject->GetStringField(TEXT("result"));
signResponse.error = jsonObject->GetStringField(TEXT("error"));
UE_LOG(LogTemp, Warning, TEXT("signResponse - success: %d, result: %s, error: %s"), signResponse.success, *signResponse.result, *signResponse.error);
//UE_LOG(LogTemp, Warning, TEXT("signResponse - success: %d, result: %s, error: %s"), signResponse.success, *signResponse.result, *signResponse.error);
setSignResponse(signResponse);
}
}
Expand Down Expand Up @@ -906,7 +906,7 @@ void UWeb3Auth::sessionTimeout() {

web3AuthApi->Logout(request, [this](const FString& response)
{
UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response);
//UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response);
(void) this->logoutEvent.ExecuteIfBound();
this->sessionId = FString();
keyStoreUtils->Clear();
Expand Down Expand Up @@ -955,7 +955,7 @@ void UWeb3Auth::createSession(const FString& jsonData, int32 sessionTime, bool i

web3AuthApi->CreateSession(request, [this, newSessionKey, isWalletService](const FString& response)
{
UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response);
//UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response);
if(isWalletService) {
handleCreateSessionResponse("wallet", newSessionKey, isWalletService);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ void UWeb3AuthApi::AuthorizeSession(const FString& key, const TFunction<void(FSt
request->OnProcessRequestComplete().BindLambda([callback](FHttpRequestPtr request, FHttpResponsePtr response, bool success) {
FString response_string = response->GetContentAsString();
FString url = request->GetURL();
UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response_string);
//UE_LOG(LogTemp, Log, TEXT("Response: %s"), *response_string);

if (success && response->GetResponseCode() == EHttpResponseCodes::Ok) {
FStoreApiResponse api_response;
Expand Down Expand Up @@ -69,7 +69,7 @@ void UWeb3AuthApi::Logout(const FLogoutApiRequest logoutApiRequest, const TFunct

request->OnProcessRequestComplete().BindLambda([callback](FHttpRequestPtr request, FHttpResponsePtr response, bool success) {
FString response_string = response->GetContentAsString();
UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string);
//UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string);
UE_LOG(LogTemp, Log, TEXT("Status code: %d "), response->GetResponseCode());

if (success && response->GetResponseCode() == EHttpResponseCodes::Created) {
Expand All @@ -96,7 +96,7 @@ void UWeb3AuthApi::CreateSession(const FLogoutApiRequest logoutApiRequest, const

request->OnProcessRequestComplete().BindLambda([callback](FHttpRequestPtr request, FHttpResponsePtr response, bool success) {
FString response_string = response->GetContentAsString();
UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string);
//UE_LOG(LogTemp, Log, TEXT("Response: %s "), *response_string);
UE_LOG(LogTemp, Log, TEXT("Status code: %d "), response->GetResponseCode());

if (success && response->GetResponseCode() == EHttpResponseCodes::Created) {
Expand Down