Skip to content

Commit

Permalink
remove auth token from consumer auth request
Browse files Browse the repository at this point in the history
  • Loading branch information
Funkatronics committed Oct 17, 2023
1 parent 3db69e2 commit 0095391
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,19 @@ public class AuthorizeRequest
@Nullable
protected final String[] mAddresses;

@Nullable
protected final String mAuthToken;

/*package*/ AuthorizeRequest(@NonNull NotifyingCompletableFuture<Result> request,
@Nullable String identityName,
@Nullable Uri identityUri,
@Nullable Uri iconUri,
@NonNull String chain,
@Nullable String[] features,
@Nullable String[] addresses,
@Nullable String authToken) {
@Nullable String[] addresses) {
super(request);
mIdentityName = identityName;
mIdentityUri = identityUri;
mIconUri = iconUri;
mFeatures = features;
mAddresses = addresses;
mAuthToken = authToken;

if (Identifier.isValidIdentifier(chain)) {
mChain = chain;
Expand Down Expand Up @@ -103,9 +98,6 @@ public String getChain() {
@Nullable
public String[] getAddresses() { return mAddresses; }

@Nullable
public String getAuthToken() { return mAuthToken; }

@Deprecated
public void completeWithAuthorize(@NonNull byte[] publicKey,
@Nullable String accountLabel,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public void authorize(@NonNull MobileWalletAdapterServer.AuthorizeRequest reques

mIoHandler.post(() -> mCallbacks.onAuthorizeRequest(new AuthorizeRequest(
future, request.identityName, request.identityUri, request.iconUri, chain,
request.features, request.addresses, request.authToken)));
request.features, request.addresses)));
}

private void doReauthorize(@NonNull MobileWalletAdapterServer.AuthorizeRequest request) {
Expand Down

0 comments on commit 0095391

Please sign in to comment.