This commit is contained in:
ekzyis 2023-11-21 02:45:51 +01:00
parent 369328da15
commit 4c5e470caf
1 changed files with 2 additions and 2 deletions

View File

@ -23,8 +23,8 @@ export async function getServerSideProps ({ req, res, query: { callbackUrl, mult
}
if (session && callbackUrl && !multiAuth) {
// in the cause of auth linking we want to pass the error back to settings
// in the case of multiauth, don't redirect if there is already a session
// in the case of auth linking we want to pass the error back to settings
// in the case of multi auth, don't redirect if there is already a session
if (error) {
const url = new URL(callbackUrl, process.env.PUBLIC_URL)
url.searchParams.set('error', error)