Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(auth): use standard 'Unauthorized' error in hybrid auth responses (
  • Loading branch information
waleedlatif1 authored Mar 30, 2026
commit 5c334874eba7b57a5958368235436a732c0ba085
4 changes: 2 additions & 2 deletions apps/sim/lib/auth/hybrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ export async function checkSessionOrInternalAuth(

return {
success: false,
error: 'Authentication required - provide session or internal JWT',
error: 'Unauthorized',
}
} catch (error) {
logger.error('Error in session/internal authentication:', error)
Expand Down Expand Up @@ -225,7 +225,7 @@ export async function checkHybridAuth(
// No authentication found
return {
success: false,
error: 'Authentication required - provide session, API key, or internal JWT',
error: 'Unauthorized',
}
} catch (error) {
logger.error('Error in hybrid authentication:', error)
Expand Down
Loading