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',