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

fix: return a 401 when tokens can't be refreshed in API #2056

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

lucasmarshall
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Dec 12, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
management-ui ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2023 9:51pm
supaglue-docs ⬜️ Ignored (Inspect) Visit Preview Dec 12, 2023 9:51pm

@@ -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 {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also being thrown in API, so we need to have the correct http status code for it

@lucasmarshall lucasmarshall merged commit 8c645a4 into main Dec 12, 2023
11 checks passed
@lucasmarshall lucasmarshall deleted the lucas/api-token-refresh-error branch December 12, 2023 22:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants