feat(auth): more ip

This commit is contained in:
Gergő Móricz 2025-04-13 23:26:57 -07:00
parent 07cdde7409
commit ebdf182b00

View File

@ -393,7 +393,7 @@ export async function supaAuthenticateUser(
};
}
const incomingIP = (req.headers["x-forwarded-for"] ||
const incomingIP = (req.headers["x-preview-ip"] || req.headers["x-forwarded-for"] ||
req.socket.remoteAddress) as string;
const iptoken = incomingIP + token;