How to get my right from a scammer company

Hello everyone,

I want some honest opinions on a situation I’m dealing with.

I was working remotely for a company under a signed contract. Without warning, they revoked my access to everything, email, Slack, GitHub repositories, and the rest of the systems I was using for work.

What makes this especially frustrating is that my work was good, they were happy with it, and there were no performance issues. Despite that, they decided to terminate/revoke the contract even though there was still time remaining on it.

Because I had already signed this contract, I turned down other opportunities. Now I feel very mad how they dealt with me.

I still have copies of the backend and frontend code I worked on.