fix(auth): prevent partial authentication state on fetch user failure#539
fix(auth): prevent partial authentication state on fetch user failure#539may-tas wants to merge 3 commits intoCircuitVerse:masterfrom
Conversation
✅ Deploy Preview for cv-mobile-app-web ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
WalkthroughThe changes reorder the authentication state assignments in Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 7aaaf182-76c4-4c2d-9448-0dcad78626fb
📒 Files selected for processing (2)
lib/viewmodels/authentication/login_viewmodel.dartlib/viewmodels/authentication/signup_viewmodel.dart
|
@coderabbitai please review. |
|
✅ Actions performedReview triggered.
|
Fixes #537
Describe the changes you have made in this PR -
LoginViewModelandSignupViewModel. Previously,_storage.isLoggedIn = truewas being assigned before the network call to fetch user profile data completed.fetchCurrentUser()has successfully fetched data and mapped the model before allowing the application state to reflect a logged-in status.Screenshots of the changes (If any) -
N/A
Summary by CodeRabbit