From 4541b366e58fbd1d0efa08ad77ea19559987649a Mon Sep 17 00:00:00 2001 From: John Costa Date: Sat, 3 May 2025 11:01:10 +0100 Subject: [PATCH] fix --- frontend/src/ProtectedRoute.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/ProtectedRoute.tsx b/frontend/src/ProtectedRoute.tsx index 72b3f6c..16a381a 100644 --- a/frontend/src/ProtectedRoute.tsx +++ b/frontend/src/ProtectedRoute.tsx @@ -1,7 +1,7 @@ import { type Component, type JSX, Show } from "solid-js"; import { jwtDecode } from "jwt-decode"; import { Navigate } from "@solidjs/router"; -import { saveToken } from "tauri-plugin-ios-shared-token-api"; +import { save_token } from "tauri-plugin-ios-shared-token-api"; export const isTokenValid = (): boolean => { const token = localStorage.getItem("access"); @@ -29,7 +29,7 @@ export const ProtectedRoute: Component<{ children?: JSX.Element }> = ( throw new Error("unreachable"); } - saveToken(token) + save_token(token) .then(() => console.log("Saved token!!!")) .catch((e) => console.error(e)); }