frontend: real world movement
This commit is contained in:
@@ -4,13 +4,6 @@ import { userDatesFromRFC3339, refreshCookie } from "$lib/utils/helpers";
|
||||
|
||||
/** @type {import('./$types').LayoutServerLoad} */
|
||||
export async function load({ cookies, fetch, locals }) {
|
||||
// if (locals.users) {
|
||||
// return {
|
||||
// users: locals.users,
|
||||
// user: locals.user,
|
||||
// };
|
||||
// }
|
||||
|
||||
const jwt = cookies.get("jwt");
|
||||
try {
|
||||
// Fetch user data, subscriptions, and licence categories in parallel
|
||||
@@ -27,7 +20,6 @@ export async function load({ cookies, fetch, locals }) {
|
||||
}
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
// Check if the server sent a new token
|
||||
const newToken = response.headers.get("Set-Cookie");
|
||||
refreshCookie(newToken, null);
|
||||
|
||||
Reference in New Issue
Block a user