I have an issue with tuples:
export async function redirectIf(
nextCookies: NextApiRequestCookies,
options: { notAuth: PagePath },
): Promise<[Redirect, undefined] | [undefined, UserDto]>;
It is not aware that the user exists if redirect does not:
