-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Problems with the Google Auth feature: #800
Comments
Hello @filaliyasmine! 🌟 Don't forget to hit the ⭐ star button 😉 Tip Don't forget to check our contributing guidelines for more details. |
@filaliyasmine, can you please describe a bit more? Or write steps to reproduce the issue? We do have an error message for auth. |
On my machine, the google Auth fails but it doesn't display anything. I checked the code and found out that it was using Toast to display an error, but it never imported it. also, the error is displayed in the wrong try-catch block. You can check my pull request for more clarity |
@filaliyasmine, the only difference I can feel is defining a function and then using it in catch block. How will it make any changes? It's still doing the same thing 🤔 (Only the toast import needs to be done) |
In the PR, the main logic for handling Google sign-in using Firebase authentication and making a POST request to the backend endpoint remains unchanged. The introduction of the new function for error handling doesn't alter the fundamental flow of the code. It's primarily a restructuring or enhancement for better error handling and notification, but the core logic remains the same. |
yes the changes are made to better handle the error and display it |
I don't really find any improvement. It's only toast being imported. Not useful to make a separate function when it's being used only once. Even the error message goes wrong "Gmail" - gmail and google auth are not completely same things. |
is there anything else I need to do? @pranshugupta54 |
Just fix the formatting for that file. |
can you assign this issue to me |
Hey @Gyanshu-Kumar, this is already assigned. |
This issue did not get any activity in the past 10 days and will be closed in 180 days if no update occurs. Please check if the develop branch has fixed it and report again or close the issue. |
Contact Details
No response
What happened?
Code-wise:
=> Toast is not imported but is used, resulting in an unhandled exception.
User experience:
=> The google login fails but no error is displayed, and the google auth tab just closes without any feedback to the user.
There is a piece of code that displays an error but its only displaying the error code, its not an understandable message.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Are you interested in contributing?
Code of Conduct
The text was updated successfully, but these errors were encountered: