Skip to content

Commit

Permalink
fix: remove serverSideProps on finalize page (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinebigard authored Jun 21, 2022
1 parent 29ffa00 commit fb511ab
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ui/pages/auth/finalize.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import jwt from "jsonwebtoken";
import useToken from "../../hooks/useToken";
import useAuth from "../../hooks/useAuth";
import { _post } from "../../common/httpClient";
import { getAuthServerSideProps } from "../../common/SSR/getAuthServerSideProps";

const validate = async (validationSchema, obj) => {
let isValid = false;
Expand All @@ -42,8 +41,6 @@ const validate = async (validationSchema, obj) => {
return { isValid, error };
};

export const getServerSideProps = async (context) => ({ props: { ...(await getAuthServerSideProps(context)) } });

const Finalize = () => {
const [auth, setAuth] = useAuth();
const [, setToken] = useToken();
Expand Down

0 comments on commit fb511ab

Please sign in to comment.