Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
fix: return a 401 when tokens can't be refreshed in API (#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmarshall authored Dec 12, 2023
1 parent ea1db28 commit 8c645a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,6 @@ export class SGTerminalTooManyRequestsError extends SGSyncWorkerError {
// Throw this when you want run_object_sync to pause after the current execution
export class SGConnectionNoLongerAuthenticatedError extends SGSyncWorkerError {
constructor(message: string, status?: number, cause?: Error) {
super(message, status, 'SG_CONNECTION_NO_LONGER_AUTHENTICATED_ERROR', cause);
super(message, status ?? 401, 'SG_CONNECTION_NO_LONGER_AUTHENTICATED_ERROR', cause);
}
}

0 comments on commit 8c645a4

Please sign in to comment.