I personally refuse live coding sessions during interviews, including whiteboard programming. If they require this during an interview the company’s not for me.
Don’t mind code challenges where I have a timeframe and can submit. It’s not how you code normally so why should it be how you’re hired?
How do you phrase your refusal? I am not looking for work right now, and my current job didn't give me live coding sessions. I'm against them in principle.
But I can't figure out how to phrase it in a way that doesn't sound like you're dodging. Do you refuse while you're already in the interview? Or do you make a preemptive disclaimer when they invite you for a "technical interview"?