Mudanças em criar conta
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user