It is illegal to work in Canada.
According to the Canadian immigration law, students who stay in Canada with student visas must study full-time to maintain their student visas and are not allowed to work outside the school. Therefore, international students should not work, or they may face the risk of being repatriated.
Issue work permits
However, under certain circumstances, a work permit may be considered. Specifically, it includes graduate students providing auxiliary work for teachers or laboratories, engaging in other jobs on campus, taking courses that include a period of practice, engaging in learning-related work after graduation, and serious problems in students' home countries or economic guarantors leading to the suspension of funding.
The process of applying for a work permit
If you meet any of the above five conditions, you can apply for an employment permit with your employer's letter to the municipal government immigration center and pay the handling fee. You can only work after obtaining approval, otherwise it will be considered illegal and may lead to repatriation.
Consult relevant government agencies.
When it comes to visas, employment and other issues, I suggest you consult with relevant government agencies to ensure that your rights and interests are protected.