fix: ICS export auth token key (auth_token not token)
This commit is contained in:
@@ -718,7 +718,7 @@ export default function DayPlanSidebar({
|
|||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
try {
|
try {
|
||||||
const res = await fetch(`/api/trips/${tripId}/export.ics`, {
|
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()
|
if (!res.ok) throw new Error()
|
||||||
const blob = await res.blob()
|
const blob = await res.blob()
|
||||||
|
|||||||
Reference in New Issue
Block a user