diff --git a/packages/dashboard/src/pages/settings.js b/packages/dashboard/src/pages/settings.js index 99b38090..2e8f482c 100644 --- a/packages/dashboard/src/pages/settings.js +++ b/packages/dashboard/src/pages/settings.js @@ -1,9 +1,9 @@ // import Link from "next/link"; -import { Configuration, PublicApi } from "@ory/kratos-client"; +import { Configuration, AdminApi } from "@ory/kratos-client"; import config from "../config"; // import Message from "../components/Form/Message"; -const kratos = new PublicApi(new Configuration({ basePath: config.kratos.public })); +const kratos = new AdminApi(new Configuration({ basePath: config.kratos.public })); export async function getServerSideProps(context) { const flow = context.query.flow;