Add expiry to Personal API tokens

Is there a way to add an expiry date to Personal API tokens? So that when an authenticated user tries to do an action with an expired token, it returns a 401 error response