The Northern Ireland international fullback has been a free agent since being released by Newcastle United last summer.
"We've been struck by a few injuries which has made the squad look a bit thin, so we felt we needed more cover in the short term and I'm really happy we've been able to bring in someone of Jamal's calibre," boss Paul Heckingbottom said.
"He brings experience of playing at the highest level, he's earned promotion out of this division, and he's been playing international football since 2018.
"Most importantly, he's shown us he's really excited by the opportunity and he's ready to give everything while he's with us."
Lewis also stated: "I spoke to the manager. Obviously he knows of me and my running power, what I can give to any team that I play for. I think how the team plays should suit me and I should be able to gel with the team quite well.
"I just want to be able to get as much knowledge and information and get everything moving as quickly as possible so I can just help as much as I can."
