Don't. Requests for someone's username and password are the single most common way accounts are stolen, and it makes no difference whether the person asking seems friendly or is offering something in return.
The safe habit is straightforward: create your own account, choose a password nobody else knows, and keep it to yourself. Anyone who needs access to a game you are playing should make their own account rather than borrow yours — and if a site or message asks you to hand over credentials, treat it as a warning sign.