Open Julesssss opened 1 week ago
Just noting that this issue wil not block HybridApp release 9.0.47.4
as this is an existing authentication issue
FYI: Here's the draft PR where I was investigating this issue https://github.com/Expensify/Mobile-Expensify/pull/13144
I merged the latest main branches to find potential problems, and it turns out that the app sometimes crashes during Sign Up. I'm going to investigate this.
Hi, I have an update. It seems like we don’t return the encryptedAuthToken
to the old app anymore, which is causing the current PR to break. We’re having a discussion about the next steps for the PR
Hi, I have a new update after another round of investigation.
I tried to implement another approach which was described here. Unfortunately, there are some issues with authentication on NewDot side with credentials generated on OldDot side (it's quite surprising, because It was working in the past 🤔).
I get the following error when I try to re-authenticate:
{"response": {"jsonCode": 404, "message": "404 No passwordless infinite login found.", "onyxData": [], "requestID": "8d4903949ac6b197-WAW"}
My guess is that we cannot make authentication request with HybridApp's partnerName
(I compared how it behaves with NewDot partnerName
and I did not encounter this issue).
I think we need someone from Expensify to look into this as it seems like backend issue.
Alternatively, we could switch to using NewDot's partnerName
in HybridApp, but I'm not sure what impact that might have on the existing backend logic.
@jasperhuangg - I think you were looking into this specific case on the backend, right?
@AndrewGable, I don’t think the issue is related to partnerName. Both the PARTNER_ANDROID and PARTNER_IPHONE are being considered in this condition, which must pass before reaching the logic that throws the exception.
The problem @mateuuszzzzz is encountering seems to be because we aren’t creating a temporary login for the user when they sign into HybridApp, unlike what we do for NewDot, which makes this check fail. When a temporary login is created, an NVP is also set, which is checked in situations like this.
This issue is similar to this one because both involve differences in the HybridApp sign-in flow compared to NewDot. However, the root cause in each case is different, as different parts of the sign-in flow are inconsistent. To clarify, the issue I'm assigned to is caused by the partnerNames being inconsistent between HybridApp and NewDot.
I hope to have more time to help triage the backend issues soon.
Problem
Receipt scanning appears to be totally broken for a new account sign-up
UploadReciept logs
Device:
Reproduction steps:
https://github.com/user-attachments/assets/c86f5040-97f5-4cd5-808c-6fc8b1b3ec75
Solution
investigate.
From @AndrewGable :
From @mateuuszzzzz:
From @trjExpensify: