8000 Fix: Replace typo + Add error handler in AuthController.js by thaninbew · Pull Request #716 · ruxailab/RUXAILAB · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: Replace typo + Add error handler in AuthController.js #716

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

Merged
merged 1 commit into from
Mar 23, 2025

Conversation

thaninbew
Copy link
Contributor

Fix the autoSignIn method in the AuthController class. Corrects a typo in the reject parameter and adds error handling to ensure the promise is properly rejected if an error occurs during the authentication state change.

Notes:

fix typo in the Promise parameter from rejecj to reject.

Added a proper error handler to the onAuthStateChanged method, this is what it does: Calls unsubscribe() (prevent memory leaks), and properly rejects the promise with the error

fix typo in the Promise parameter from rejecj to reject.

Added a proper error handler to the onAuthStateChanged method, this is what it does:
Calls unsubscribe() (prevent memory leaks), and properly rejects the promise with the error
Copy link

@thaninbew thaninbew changed the title fix typo + add error handler Fix: typo + Add error handler in AuthController.js Mar 17, 2025
@thaninbew thaninbew changed the title Fix: typo + Add error handler in AuthController.js Fix: Replace typo + Add error handler in AuthController.js Mar 17, 2025
@marcgc21 marcgc21 merged commit 6705ed4 into ruxailab:develop Mar 23, 2025
2 checks passed
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.

2 participants
0