What does valid only with DHS authorization mean on an SSN card?
It means your number was issued because of temporary work permission, so you may work only while DHS authorizes it. The card itself never expires.
It is a restriction printed on the card because your work permission is temporary. The number is yours for life and the card does not expire, but the legend means you may work only for as long as DHS authorizes it. SSA prints it on cards for noncitizens who are allowed to work for a limited time, such as H-1B and F-1 workers (SSA, Social Security Numbers for noncitizens).
What it does and does not do
The legend does not limit the number's use for taxes, banking or benefits you earn. It does not change when your status ends, and it does not by itself mean your authorization is running out. It is a label about the basis on which the card was issued, and it stays on the card after your status or employer changes.
It also tells a future employer something: the card is not proof that you may work. Employers filling out Form I-9 cannot accept a Social Security card that carries a work restriction as a List C document, and USCIS's employer handbook lists the acceptable documents (USCIS, Form I-9 acceptable documents). You show your passport with the I-94 or an EAD instead.
The related legend
A card marked "not valid for employment" is a different thing. It goes to a person given a number for a non-work reason, usually a benefit that requires one. Someone with that card has no permission to work on it.
When the card can change
When your status improves, you can ask for a replacement without the legend. A person who becomes a lawful permanent resident, or a naturalized citizen, can request a new card with no restriction. You bring your green card or naturalization certificate to a field office. The number stays the same. Many people do this when they get a green card, because the old legend invites questions from new employers.
Does it matter to your employer today?
Not if you hold valid status. The restriction is a flag for SSA and DHS, not a signal that something is wrong. An H-1B worker whose petition is valid can use the number for payroll in the ordinary way.
What goes wrong
Presenting the card as I-9 proof. The employer will reject it, and that delays onboarding. Bring the passport and I-94.
Assuming the legend ended with the visa. It remains until you replace the card.
Panic about an old card. A card issued years ago on F-1 with the legend is not a problem for a green card holder. Replace it when convenient.
If an employer is rejecting valid documents, the fix is to give them the right List A or List B and C combination, and an immigration attorney can help if they insist.