You’ve got to earn the chip

You’ve got to earn the chip like we all did, through blood, sweat, and tears.
It’s a sentence from an American TV program.
I just know they’re in AA (alcoholics anonymous).
But I don’t know what “the chip” means here?

Thank you very much!

“A sobriety coin is a token given to Alcoholics Anonymous or other 12 step group members representing the amount of time the member has remained sober. It is traditionally a medallion the size of a poker chip”