Skip to content

Commit

Permalink
fix auth flow
Browse files Browse the repository at this point in the history
  • Loading branch information
karle0wne committed Nov 19, 2024
1 parent 4a3ca8e commit dfae4bb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ public AccessData approveUserAccess(String invoiceId, String paymentId, boolean
}

private AccessData buildAccessData(String invoiceId, String paymentId, boolean checkUserAccessData) {
var authData = checkUserAccessData ? tokenKeeperService.getAuthData() : null;
var invoice = invoicingService.getInvoice(invoiceId);
return AccessData.builder()
.authData(authData)
.invoice(invoice)
.payment(getInvoicePayment(invoice, paymentId))
.authData(checkUserAccessData ? tokenKeeperService.getAuthData() : null)
.build();
}

Expand Down

0 comments on commit dfae4bb

Please sign in to comment.