fix: ICS export auth token key (auth_token not token)

This commit is contained in:
Maurice
2026-03-30 17:09:44 +02:00
parent d189d6d776
commit 9aed5ff2ed

View File

@@ -718,7 +718,7 @@ export default function DayPlanSidebar({
onClick={async () => {
try {
const res = await fetch(`/api/trips/${tripId}/export.ics`, {
headers: { 'Authorization': `Bearer ${localStorage.getItem('token')}` },
headers: { 'Authorization': `Bearer ${localStorage.getItem('auth_token')}` },
})
if (!res.ok) throw new Error()
const blob = await res.blob()