frontend:adapted to new hooks
This commit is contained in:
@@ -14,7 +14,7 @@ export async function handle({ event, resolve }) {
|
|||||||
// if there is no jwt load page as normal
|
// if there is no jwt load page as normal
|
||||||
return await resolve(event);
|
return await resolve(event);
|
||||||
}
|
}
|
||||||
const response = await fetch(`${BASE_API_URI}/users/backend/current-user`, {
|
const response = await fetch(`${BASE_API_URI}/backend/users/current`, {
|
||||||
credentials: "include",
|
credentials: "include",
|
||||||
headers: {
|
headers: {
|
||||||
Cookie: `jwt=${jwt}`,
|
Cookie: `jwt=${jwt}`,
|
||||||
|
|||||||
Reference in New Issue
Block a user