added signin workaround for dev

This commit is contained in:
2023-07-27 14:05:45 +01:00
parent daa8b1c96d
commit dcf220198d
4 changed files with 31 additions and 24 deletions
+3 -3
View File
@@ -91,8 +91,8 @@ const SignIn = (props) => {
};
export async function getServerSideProps(context) {
console.log("-1-1-1-1-", context.query.callbackUrl, context.locale);
console.log("------ " + context.query.callbackUrl);
//console.log("-1-1-1-1-", context.query.callbackUrl, context.locale);
//console.log("------ " + context.query.callbackUrl);
// setCookie(context, "next-auth.callback-url", context.query.callbackUrl, {
// path: "/",
// });
@@ -113,7 +113,7 @@ export async function getServerSideProps(context) {
new URL(callback).port; // +
// "/api/auth/signin/email";
console.log("******", formURL, callback, csrfToken);
//console.log("******", formURL, callback, csrfToken);
return {
props: { csrfToken: csrfToken, callbackUrl: formURL, redirect: true },
};