marthaegrimaldi / marthaegrimaldi/ifood-clone-using-react-native

Login Button Shows Error on First Click When Using Email in iOS Customer App

Open
#600 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
In the iOS customer app, when a user tries to log in using their email address, clicking the login button for the first time triggers an error message—even when the entered credentials are correct. On the second attempt (with the same details), the login proceeds successfully.

To Reproduce
Steps to reproduce the behavior:

Open the iOS customer app

Navigate to the login screen

Enter valid email and password

Tap the login button

Observe an error message

Tap the login button again without changing anything

Login succeeds

Expected behavior
The login should work on the first attempt if the entered credentials are correct. An error should only appear if there’s a genuine authentication issue.

Screenshots

ScreenRecording_06-10-2025.13-18-17_1.MP4
Smartphone (please complete the following information):

Device: iPhone (e.g., iPhone 13 Pro Max)

OS: iOS [e.g., iOS 17.x]

App Version: [Please insert app version if available]

Additional context
This issue could be related to a delayed input binding, form validation bug, or premature API call before the input fields are fully registered. It may also be affecting first-time session initialization or token handling.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the iOS customer app and its login screen but no source files or tests. Start by reproducing the first- and second-click behavior with valid email credentials on iOS, then trace the login submission and authentication flow. Done means valid credentials succeed on the first tap without an erroneous message, with coverage for the regression if the project has applicable tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
authentication, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.