style: fix prettier formatting in useApp.ts

This commit is contained in:
Jiang Bohan
2026-01-16 14:20:53 +08:00
parent 699da814ee
commit 567d2eb146

View File

@@ -24,7 +24,12 @@ const AGENT_AUTH_COMMANDS: Record<string, string> = {
// Check if error is authentication related
function isAuthError(errorMessage: string): boolean {
const authKeywords = ['authentication required', 'unauthorized', 'not authenticated', 'login required']
const authKeywords = [
'authentication required',
'unauthorized',
'not authenticated',
'login required'
]
const lowerMessage = errorMessage.toLowerCase()
return authKeywords.some((keyword) => lowerMessage.includes(keyword))
}