The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
403 -> 401 status code for expired token
Kiran Ka518b2493b7b
diff --git a/apps/web/lib/auth/workspace-edge.ts b/apps/web/lib/auth/workspace-edge.tsindex 42e640a3ca..5f7e974a09 100644--- a/apps/web/lib/auth/workspace-edge.ts+++ b/apps/web/lib/auth/workspace-edge.ts@@ -161,7 +161,7 @@ export const withWorkspaceEdge = (if (token.expires && token.expires < new Date()) {throw new DubApiError({- code: "forbidden",+ code: "unauthorized",message: "Unauthorized: Access token expired.",});}diff --git a/apps/web/lib/auth/workspace.ts b/apps/web/lib/auth/workspace.tsindex f5e928cf7f..dfaf0ad907 100644--- a/apps/web/lib/auth/workspace.ts+++ b/apps/web/lib/auth/workspace.ts@@ -163,7 +163,7 @@ export const withWorkspace = (if (token.expires && token.expires < new Date()) {throw new DubApiError({- code: "forbidden",+ code: "unauthorized",message: "Unauthorized: Access token expired.",});}