Fix API token not being displayed after creation.
Review Request #12583 — Created Sept. 6, 2022 and submitted
When creating an API token through the API tokens config page, the page would
need to be reloaded in order for the token to show up in the list of tokens.
This was due to the token's
expiredfield being missing from the list of
attributes for that token item, which prevented the token item from
rendering. This change fixes that, and corrects a separate minor issue in the
Created new API tokens from the config page and made sure they appeared
immediately on the page.