Purchasing online courses

Slm if I purchase an online course is it a sin for me to be sharing that course with my friend so my friend doesn’t have to pay.

To clarify Ive purchased the course and now giving my login details so my friend can access. Pls note I am not charging my friend just letting my friend have free acces. Pls confirm if this is allowed

Assalaamu alaykum,

In all such scenarios, it depends on the terms and conditions of that course.

Allah knows best