Skip to content

Commit 7a42e29

Browse files
committed
fix(auth): use standard 'Unauthorized' error in hybrid auth responses
1 parent d3d58a9 commit 7a42e29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/sim/lib/auth/hybrid.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export async function checkSessionOrInternalAuth(
154154

155155
return {
156156
success: false,
157-
error: 'Authentication required - provide session or internal JWT',
157+
error: 'Unauthorized',
158158
}
159159
} catch (error) {
160160
logger.error('Error in session/internal authentication:', error)
@@ -225,7 +225,7 @@ export async function checkHybridAuth(
225225
// No authentication found
226226
return {
227227
success: false,
228-
error: 'Authentication required - provide session, API key, or internal JWT',
228+
error: 'Unauthorized',
229229
}
230230
} catch (error) {
231231
logger.error('Error in hybrid authentication:', error)

0 commit comments

Comments
 (0)