Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle missing email in Facebook login #38

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

HamzaIsrar12
Copy link

Description

Replaced JSONObject.getString() with JSONObject.optString() to prevent exceptions when the email is not provided. Since the email is not required in the login flow, the change ensures a smooth process by returning an empty string if the email key is absent.

Fixes: Bug Sheet

Replaced JSONObject.getString() with JSONObject.optString() to
prevent exceptions when the email is not provided. Since the email
is not required in the login flow, the change ensures a smooth
process by returning an empty string if the email key is absent.

Fixes: LEARNER-10178
Copy link
Member

@farhan-arshad-dev farhan-arshad-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code modifications have successfully addressed the issue that was causing the application to crash.

@dixidroid dixidroid merged commit 74c8b73 into 2U/develop Aug 22, 2024
4 checks passed
@HamzaIsrar12 HamzaIsrar12 deleted the hamza/facebook_email_issue branch August 26, 2024 08:40
@HamzaIsrar12 HamzaIsrar12 self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants