This commit is contained in:
2025-10-05 20:55:26 +01:00
parent 3594baceb5
commit e61af3007f

View File

@ -36,7 +36,7 @@ export const ProtectedRoute: Component<ParentProps> = (props) => {
const isValid = isTokenValid(); const isValid = isTokenValid();
if (isValid) { if (isValid) {
const token = localStorage.getItem("access"); const token = localStorage.getItem("refresh");
if (token == null) { if (token == null) {
throw new Error("unreachable"); throw new Error("unreachable");
} }