santree 0.2.12 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -133,6 +133,18 @@ export default function LinearAuth({ options }) {
|
|
|
133
133
|
setStatus("done");
|
|
134
134
|
return;
|
|
135
135
|
}
|
|
136
|
+
// Token expired and refresh failed — re-authenticate
|
|
137
|
+
setStatus("authenticating");
|
|
138
|
+
const result = await startOAuthFlow();
|
|
139
|
+
if (!result) {
|
|
140
|
+
setError("Authentication failed or timed out. Please try again.");
|
|
141
|
+
setStatus("error");
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
setRepoLinearOrg(repoRoot, result.orgSlug);
|
|
145
|
+
setMessage(`Re-authenticated as ${result.orgName} (${result.orgSlug})`);
|
|
146
|
+
setStatus("done");
|
|
147
|
+
return;
|
|
136
148
|
}
|
|
137
149
|
// Check for existing authenticated orgs
|
|
138
150
|
const store = readAuthStore();
|
|
@@ -8,7 +8,7 @@ export async function loadDashboardData(repoRoot) {
|
|
|
8
8
|
Promise.resolve(listWorktrees()),
|
|
9
9
|
]);
|
|
10
10
|
if (!issues)
|
|
11
|
-
throw new Error("Failed to
|
|
11
|
+
throw new Error("Failed to authenticate with Linear. Run: santree linear auth");
|
|
12
12
|
// Build worktree map: ticketId -> worktree info
|
|
13
13
|
const wtMap = new Map();
|
|
14
14
|
for (const wt of worktrees) {
|