Did you know that when you’re logging into the Wi-Fi at Starbucks, you could have code installed on your laptop that is used to mine for bitcoin?

This is what recently happened to one man who stumbled across the code after joining the store’s Wi-Fi.

The complaint was addressed by Starbucks, with the company saying the issue has since been resolved.

Despite the initial concerns, a Starbucks spokesman said the problem was with the internet service provider and not with the franchise itself.

“Last week, we were alerted to the issue and we reached out to our internet service provider — the Wi-Fi is not run by Starbucks, it’s not something we own or control,” the spokesman told Motherboard.

“We want to ensure that our customers are able to search the internet over Wi-Fi securely, so we will always work closely with our service provider when something like this comes up.”

“We don’t have any concern that this is widespread across any of our stores.”

The act of bitcoin mining is becoming more common, with hackers hijacking computer processors to search for cryptocurrency not being traded on the open market.

To avoid using extremely expensive servers, hackers are putting a script on popular websites, which infects the computers of those visiting.