Skip to content

Commit 743323b

Browse files
committed
feat(frontend): redirect if not authenticated
1 parent b3b1968 commit 743323b

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/backend/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ryot"
3-
version = "4.3.7"
3+
version = "4.3.8"
44
edition = "2021"
55
repository = "https://github.com/IgnisDa/ryot"
66
license = "GPL-3.0"

apps/frontend/app/lib/utilities.server.ts

+3
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ export const getCoreDetails = async (request: Request) => {
261261
};
262262

263263
export const getUserPreferences = async (request: Request) => {
264+
await redirectIfNotAuthenticated(request);
264265
const prefs = await userPreferencesCookie.parse(
265266
request.headers.get("cookie") || "",
266267
);
@@ -269,6 +270,7 @@ export const getUserPreferences = async (request: Request) => {
269270
};
270271

271272
export const getUserDetails = async (request: Request) => {
273+
await redirectIfNotAuthenticated(request);
272274
const details = await userDetailsCookie.parse(
273275
request.headers.get("cookie") || "",
274276
);
@@ -277,6 +279,7 @@ export const getUserDetails = async (request: Request) => {
277279
};
278280

279281
export const getUserCollectionsList = async (request: Request) => {
282+
await redirectIfNotAuthenticated(request);
280283
const list = await userCollectionsListCookie.parse(
281284
request.headers.get("cookie") || "",
282285
);

0 commit comments

Comments
 (0)