add translate
This commit is contained in:
@@ -98,7 +98,11 @@ export async function restoreSession(): Promise<AuthSession | null> {
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Session restore error:', err)
|
||||
// Silently fail for CORS/network errors - don't spam console
|
||||
// Only log if it's not a network error
|
||||
if (err instanceof Error && !err.message.includes('NetworkError') && !err.message.includes('CORS')) {
|
||||
console.error('Session restore error:', err)
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user