# Expiration options for personal access tokens

DevFeed: [Expiration options for personal access tokens](<https://devfeed.tech/articles/expiration-options-for-personal-access-tokens-74402.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2021-07-26-expiration-options-for-personal-access-tokens>)

Author: phanatic

Published: 2021-07-26T15:53:40Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [personal access token](<https://devfeed.tech/topics/personal-access-token.md>), [Secure token management](<https://devfeed.tech/topics/secure-token-management.md>), [Secrets Management](<https://devfeed.tech/topics/secrets-management.md>)

Tags: [access-tokens](<https://devfeed.tech/tags/access-tokens.md>), [email](<https://devfeed.tech/tags/email.md>), [expire](<https://devfeed.tech/tags/expire.md>), [github-api](<https://devfeed.tech/tags/github-api.md>), [personal-access-token](<https://devfeed.tech/tags/personal-access-token.md>)

## AI overview

Personal access tokens can now be given expiration dates when created or on existing tokens, a recommended security measure. GitHub emails users when a token is nearing expiration. Expired tokens can be regenerated as duplicates with the original properties. GitHub API responses include the `GitHub-Authentication-Token-Expiration` header, which scripts can use to warn as expiration approaches.

## Source excerpt

You can now set an expiration date on your new and existing personal access tokens. Setting an expiration date on personal access tokens is highly recommended as this helps keep...