diff --git a/.github/screenshot.png b/.github/screenshot.png
new file mode 100644
index 0000000..04e31cd
Binary files /dev/null and b/.github/screenshot.png differ
diff --git a/README.md b/README.md
index 97eb4ba..826c5ee 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,8 @@
+
+
Build setup |
Changelog |
@@ -80,6 +82,8 @@ And that's it! Your `SkateHub Frontend` should now be up and running locally on
### 2025
+- 2025-01-15 - Move authentication logic to user edit page [#116](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/116) _(v0.1.33)_
+
### 2024
- 2024-12-31 - Add `instagram_url` field to user profile and update related forms [#113](https://github.com/jpcmf/Frontend-GraduateProgram-FullStack-2024/pull/113) _(v0.1.32)_
diff --git a/src/features/user/edit/index.tsx b/src/features/user/edit/index.tsx
index 41db166..191b15b 100644
--- a/src/features/user/edit/index.tsx
+++ b/src/features/user/edit/index.tsx
@@ -1,7 +1,6 @@
import { z } from "zod";
import { useRouter } from "next/router";
import { zodResolver } from "@hookform/resolvers/zod";
-import { parseCookies } from "nookies";
import { SubmitHandler, useForm } from "react-hook-form";
import { useContext, useEffect, useState } from "react";
import { Box, Button, Flex, Heading, Divider, SimpleGrid, VStack, HStack } from "@chakra-ui/react";
@@ -164,19 +163,3 @@ export function UserEdit() {
);
}
-
-export const getServerSideProps = async (ctx: any) => {
- const { ["auth.token"]: token } = parseCookies(ctx);
-
- if (!token) {
- return {
- redirect: {
- destination: "/",
- permanent: false
- }
- };
- }
- return {
- props: {}
- };
-};
diff --git a/src/pages/user/edit.tsx b/src/pages/user/edit.tsx
index ef69d7e..6c1043e 100644
--- a/src/pages/user/edit.tsx
+++ b/src/pages/user/edit.tsx
@@ -1,5 +1,22 @@
+import { parseCookies } from "nookies";
import { UserEdit } from "@/features/user/edit";
export default function UserEditPage() {
return