I think that ist makes no sense. The requested code expires after 5 minutes. If you read the email later, you still have to request manually.
it doesn't matter that the code is already expired, the simple fact you got a mail warns you that the session is outdated, and then you request a new one manually.