This commit is contained in:
Karol Wypchlo 2021-02-17 13:46:19 +01:00
parent 8852d38bb3
commit f2a10b07b3
1 changed files with 2 additions and 2 deletions

View File

@ -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;