Grant temporary access to repo with password

I’m planning on creating a web application for programmers to showcase their projects, and let someone who has been given a password have access to chosen repos that they own. Let’s say that the password can be given a lifetime of 1 month or so, so they can add it when sending their CVs.

Would that be possible to create? I think it would be appreciated!