21 lines
493 B
TypeScript
21 lines
493 B
TypeScript
"use server";
|
|
import React from "react";
|
|
import { checkAccessTokenIsValid } from "@/(apicalls)/cookies/token";
|
|
import ChangePassword from "@/components/password/ChangePassword";
|
|
import { redirect } from "next/navigation";
|
|
|
|
const ChangePasswordPage: React.FC = async () => {
|
|
const token_is_valid = await checkAccessTokenIsValid();
|
|
if (!token_is_valid) {
|
|
redirect("/login/email");
|
|
}
|
|
|
|
return (
|
|
<div>
|
|
<ChangePassword />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default ChangePasswordPage;
|