From 90d511077c06c3b78da01b692a279413d7fd903d Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Tue, 24 Mar 2026 13:04:57 -0700 Subject: [PATCH] fix: campaign wizard using wrong localStorage key for auth token Was reading `auth_token`, should be `encryptid-token`. Also removes the premature client-side auth guard that blocked signed-in users. Co-Authored-By: Claude Opus 4.6 --- modules/rsocials/components/folk-campaign-wizard.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/modules/rsocials/components/folk-campaign-wizard.ts b/modules/rsocials/components/folk-campaign-wizard.ts index 658ea81..284b682 100644 --- a/modules/rsocials/components/folk-campaign-wizard.ts +++ b/modules/rsocials/components/folk-campaign-wizard.ts @@ -129,7 +129,7 @@ export class FolkCampaignWizard extends HTMLElement { } private async apiFetch(path: string, opts: RequestInit = {}): Promise { - const token = (window as any).__authToken || localStorage.getItem('auth_token') || ''; + const token = (window as any).__authToken || localStorage.getItem('encryptid-token') || ''; return fetch(`${this.basePath}${path}`, { ...opts, headers: { @@ -170,12 +170,6 @@ export class FolkCampaignWizard extends HTMLElement { } private async createWizard(): Promise { - const token = (window as any).__authToken || localStorage.getItem('auth_token') || ''; - if (!token) { - this._error = 'Please sign in to create a campaign wizard'; - this.render(); - return null; - } try { const res = await this.apiFetch('/api/campaign/wizard', { method: 'POST',