fix(FN-000): polish onboarding auth and planning modal

This commit is contained in:
gsxdsm
2026-04-22 19:24:34 -07:00
parent 9ca6b9174b
commit 0da498a0b9
7 changed files with 231 additions and 3 deletions

View File

@@ -97,6 +97,12 @@ export function getAuthToken(): string | undefined {
return undefined;
}
/** Persist a token for future dashboard API requests in this browser session. */
export function setAuthToken(token: string): void {
cachedToken = token;
writeStoredToken(token);
}
/** Clear the stored token (e.g., on a 401 response). */
export function clearAuthToken(): void {
cachedToken = undefined;