expire
Reach the end of a period of validity.
The access code expires after three days.
Choose the right alternative: Close usually describes a place or service stopping operation; expire describes validity ending.
Usage note: A code expires; the sentence does not say your library membership expires.