Use Modules with BitBucket Repository

I am just getting started with modules, and it’s working perfectly. But I have trouble using/importing a repository from BitBucket. It is a private repository, so I’m thinking this can be the problem.

My repository is a documentation, that I would like to use on many Hugo Sites. (Layouts - Content)

Does anybody have any experience using private BitBucket repositories as modules? Is it possible, or must the repository be public?

UPDATE: I changed the repository to a public repository, and it now work as excepted. But I still would like to know if it’s possible to use a private repository.

These two articles helped me alot: