mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 07:11:11 -05:00
feat: Add production-safe logging for avatar debugging
This commit is contained in:
@@ -73,11 +73,13 @@ function AuthProviderComponent({ children }: { children: React.ReactNode }) {
|
||||
|
||||
// Success - update state and complete
|
||||
if (isMountedRef.current) {
|
||||
authLog('[Auth] Profile loaded:', {
|
||||
// Always log profile loading (production-safe)
|
||||
console.log('[Auth] ✅ Profile loaded:', {
|
||||
userId: data?.user_id,
|
||||
username: data?.username,
|
||||
avatar_url: data?.avatar_url,
|
||||
avatar_image_id: data?.avatar_image_id
|
||||
avatar_image_id: data?.avatar_image_id,
|
||||
hasData: !!data
|
||||
});
|
||||
setProfile(data as Profile);
|
||||
profileRetryCountRef.current = 0;
|
||||
|
||||
Reference in New Issue
Block a user