Hello @Erik Kohler ,
Thank you for reaching out to the Microsoft Q&A platform. Happy to answer your question.
To answer your question, the temporary password never expires. The next time the user signs in, the password will still work, regardless how much time has passed since the temporary password was generated.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".