added signin workaround for dev
This commit is contained in:
@@ -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 },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user