Mudanças em criar conta

This commit is contained in:
2026-05-08 12:37:15 +01:00
parent bf13bfd326
commit c821ce8e1e
4 changed files with 193 additions and 9 deletions

View File

@@ -32,6 +32,18 @@ class _SplashPageState extends State<SplashPage> {
if (currentUser != null) {
print('DEBUG: User already authenticated: ${currentUser.email}');
print(
'DEBUG: User displayName before reload: ${currentUser.displayName}',
);
// Reload user data to get latest information from Firebase
await currentUser.reload();
// Get the updated user
final updatedUser = AuthService.currentUser;
print(
'DEBUG: User displayName after reload: ${updatedUser?.displayName}',
);
// Update session with current user if needed
await SessionService.updateSessionWithCurrentUser();