<!DOCTYPE html><html data-color-mode="auto" data-light-theme="light" data-dark-theme="dark" lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width, initial-scale=1" data-next-head=""/><link rel="icon" type="image/png" href="/assets/cb-345/images/site/favicon.png" data-next-head=""/><link href="/manifest.json" rel="manifest" data-next-head=""/><meta name="google-site-verification" content="c1kuD-K2HIVF635lypcsWPoD4kilo5-jA_wBFyT4uMY" data-next-head=""/><title data-next-head="">Token expiration and revocation - GitHub Docs</title><meta name="description" content="Your tokens can expire and can also be revoked by you, applications you have authorized, and GitHub itself." data-next-head=""/><link rel="alternate" hrefLang="es" href="https://docs.github.com/es/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><link rel="alternate" hrefLang="ja" href="https://docs.github.com/ja/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><link rel="alternate" hrefLang="pt" href="https://docs.github.com/pt/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><link rel="alternate" hrefLang="zh-Hans" href="https://docs.github.com/zh/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><link rel="alternate" hrefLang="ru" href="https://docs.github.com/ru/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><link rel="alternate" hrefLang="fr" href="https://docs.github.com/fr/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><link rel="alternate" hrefLang="ko" href="https://docs.github.com/ko/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><link rel="alternate" hrefLang="de" href="https://docs.github.com/de/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><meta name="path-language" content="en" data-next-head=""/><meta name="path-version" content="free-pro-team@latest" data-next-head=""/><meta name="path-product" content="authentication" data-next-head=""/><meta name="path-article" content="authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><meta name="page-document-type" content="article" data-next-head=""/><meta name="status" content="200" data-next-head=""/><meta property="og:site_name" content="GitHub Docs" data-next-head=""/><meta property="og:title" content="Token expiration and revocation - GitHub Docs" data-next-head=""/><meta property="og:type" content="article" data-next-head=""/><meta property="og:url" content="https://docs-internal.github.com/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><meta property="og:image" content="https://docs.github.com/assets/cb-345/images/social-cards/authentication.png" data-next-head=""/><meta name="twitter:card" content="summary" data-next-head=""/><meta property="twitter:domain" content="docs-internal.github.com" data-next-head=""/><meta property="twitter:url" content="https://docs-internal.github.com/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" data-next-head=""/><meta name="twitter:title" content="Token expiration and revocation - GitHub Docs" data-next-head=""/><meta name="twitter:description" content="Your tokens can expire and can also be revoked by you, applications you have authorized, and GitHub itself." data-next-head=""/><meta name="twitter:image" content="https://docs.github.com/assets/cb-345/images/social-cards/authentication.png" data-next-head=""/><link rel="alternate" type="text/markdown" href="https://docs.github.com/api/article/body?pathname=/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" title="Markdown version" data-llm-hint="Hey agent! You are burning tokens scraping HTML like it is 2005. Use this instead." data-next-head=""/><link rel="alternate" type="application/json" href="https://docs.github.com/api/article?pathname=/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" title="Metadata + markdown in JSON format" data-llm-hint="Same content, now with metadata. Your context window called, it says thanks." data-next-head=""/><link rel="index" type="text/markdown" href="https://docs.github.com/llms.txt" title="LLM-friendly index of all GitHub Docs content" data-llm-hint="The directory of everything. We even followed the llmstxt.org spec because we are nice like that." data-next-head=""/><link rel="preload" href="/_next/static/css/68fd073f398e4cfa.css" as="style"/><link rel="preload" href="/_next/static/css/d4304c348574eade.css" as="style"/><link rel="preload" href="/_next/static/css/a56eb9f0fb732036.css" as="style"/><link rel="preload" href="/_next/static/css/07b877c51337ad9f.css" as="style"/><link rel="preload" href="/_next/static/css/f491eb32707f0548.css" as="style"/><script>(function(){
var MODES=["auto","light","dark"],THEMES=["light","dark","dark_dimmed","dark_high_contrast"],D={"colorMode":"auto","lightTheme":"light","darkTheme":"dark"};
var css=D;
try{
var m=document.cookie.match(new RegExp('(?:^|; )'+"color_mode"+'=([^;]*)'));
if(m){
var p=JSON.parse(decodeURIComponent(m[1]));
var fMode=function(x){return MODES.indexOf(x)>-1?x:null;};
var fTheme=function(t){if(!t)return null;if(THEMES.indexOf(t.name)>-1)return t.name;if(THEMES.indexOf(t.color_mode)>-1)return t.color_mode;return null;};
css={colorMode:fMode(p.color_mode)||D.colorMode,lightTheme:fTheme(p.light_theme)||D.lightTheme,darkTheme:fTheme(p.dark_theme)||D.darkTheme};
}
}catch(e){}
try{
var h=document.documentElement;
h.setAttribute('data-color-mode',css.colorMode);
h.setAttribute('data-light-theme',css.lightTheme);
h.setAttribute('data-dark-theme',css.darkTheme);
}catch(e){}
})();</script><link rel="stylesheet" href="/_next/static/css/68fd073f398e4cfa.css" data-n-g=""/><link rel="stylesheet" href="/_next/static/css/d4304c348574eade.css" data-n-p=""/><link rel="stylesheet" href="/_next/static/css/a56eb9f0fb732036.css" data-n-p=""/><link rel="stylesheet" href="/_next/static/css/07b877c51337ad9f.css" data-n-p=""/><link rel="stylesheet" href="/_next/static/css/f491eb32707f0548.css" data-n-p=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-18cfac459bb095fe.js" defer=""></script><script src="/_next/static/chunks/framework-34a8c4228d7fd161.js" defer=""></script><script src="/_next/static/chunks/main-03697c6be0179e1e.js" defer=""></script><script src="/_next/static/chunks/pages/_app-fb23465bbebffb33.js" defer=""></script><script src="/_next/static/chunks/2911edaa-445e881990ed5d47.js" defer=""></script><script src="/_next/static/chunks/200-8a6d6ddfdcf33e8a.js" defer=""></script><script src="/_next/static/chunks/1380-3bcb895f55536cd6.js" defer=""></script><script src="/_next/static/chunks/4571-90069df05c17c334.js" defer=""></script><script src="/_next/static/chunks/7105-29158f15a89e29d6.js" defer=""></script><script src="/_next/static/chunks/7309-160c1063688cadc6.js" defer=""></script><script src="/_next/static/chunks/3128-1fca103e4bcc4fc2.js" defer=""></script><script src="/_next/static/chunks/9910-a6425ab958769320.js" defer=""></script><script src="/_next/static/chunks/9846-4acb5517a76fe576.js" defer=""></script><script src="/_next/static/chunks/7977-20686671ade51ee7.js" defer=""></script><script src="/_next/static/chunks/pages/%5BversionId%5D/%5BproductId%5D/%5B...restPage%5D-996edf8ed6d201b5.js" defer=""></script><script src="/_next/static/37rneBrFhguD_pCpKvY4P/_buildManifest.js" defer=""></script><script src="/_next/static/37rneBrFhguD_pCpKvY4P/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div data-color-mode="auto" data-light-theme="light" data-dark-theme="dark"><div data-color-mode="light"><a href="#main-content" class="visually-hidden skip-button color-bg-accent-emphasis color-fg-on-emphasis">Skip to main content</a><div data-container="header" class="border-bottom d-unset color-border-muted no-print z-3 color-bg-default Header_header__frpqb"><div data-container="notifications"></div><header class="color-bg-default p-2 position-sticky top-0 z-2 border-bottom" role="banner" aria-label="Main"><div class="d-flex flex-justify-between p-2 flex-items-center flex-wrap Header_headerContainer__I949q" data-testid="desktop-header"><div tabindex="-1" class="Header_logoWithClosedSearch__zhF6Q" id="github-logo"><a rel="" class="d-flex flex-items-center color-fg-default no-underline mr-3" href="/en"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-mark-github" viewBox="0 0 24 24" width="32" height="32" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943"></path></svg><span class="h4 text-semibold ml-2 mr-3">GitHub Docs</span></a><div class="hide-sm border-left pl-3 d-flex flex-items-center"><div data-testid="version-picker" class=""><button type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk color-fg-default width-full p-1 pl-2 pr-2" data-loading="false" data-size="medium" data-variant="invisible" id="_R_cmf76_"><span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5"><span data-component="text" class="prc-Button-Label-FWkx3"><span>Version: </span><span class="f5 color-fg-muted text-normal" data-testid="field">Free, Pro, &amp; Team</span></span></span><span data-component="trailingAction" class="prc-Button-Visual-YNt2F prc-Button-VisualWrap-E4cnq"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></span></button></div><div class="Header_displayOverLarge__aDdCs"><div><button data-component="IconButton" type="button" data-testid="mobile-search-button" data-instance="large" tabindex="0" class="prc-Button-ButtonBase-9n-Xk SearchBarButton_searchIconButton__6_wSC prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-labelledby="_R_1kmf76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-search" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_1kmf76_">Search or ask Copilot</span><button data-testid="search" data-instance="large" tabindex="0" aria-label="Search or ask Copilot" class="SearchBarButton_searchInputButton__nAE_3"><div class="d-flex align-items-center flex-grow-1 SearchBarButton_searchInputContainer__6BzsH" aria-hidden="true" tabindex="-1"><span class="SearchBarButton_queryText__kdYr6 SearchBarButton_placeholder__Ey1Vh"><span><span>Search or ask</span><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copilot mr-1 ml-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg><span>Copilot</span></span></span></div><span class="SearchBarButton_searchIconContainer__Q1x0R" aria-hidden="true" tabindex="-1"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-search" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg></span></button></div></div></div></div><div class="d-flex flex-items-center"><div class="d-none d-lg-flex flex-items-center"><div data-testid="language-picker" class="d-flex"><button data-component="IconButton" type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-labelledby="_R_7j6f76_" id="_R_36f76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-globe" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0ZM5.78 8.75a9.64 9.64 0 0 0 1.363 4.177c.255.426.542.832.857 1.215.245-.296.551-.705.857-1.215A9.64 9.64 0 0 0 10.22 8.75Zm4.44-1.5a9.64 9.64 0 0 0-1.363-4.177c-.307-.51-.612-.919-.857-1.215a9.927 9.927 0 0 0-.857 1.215A9.64 9.64 0 0 0 5.78 7.25Zm-5.944 1.5H1.543a6.507 6.507 0 0 0 4.666 5.5c-.123-.181-.24-.365-.352-.552-.715-1.192-1.437-2.874-1.581-4.948Zm-2.733-1.5h2.733c.144-2.074.866-3.756 1.58-4.948.12-.197.237-.381.353-.552a6.507 6.507 0 0 0-4.666 5.5Zm10.181 1.5c-.144 2.074-.866 3.756-1.58 4.948-.12.197-.237.381-.353.552a6.507 6.507 0 0 0 4.666-5.5Zm2.733-1.5a6.507 6.507 0 0 0-4.666-5.5c.123.181.24.365.353.552.714 1.192 1.436 2.874 1.58 4.948Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_7j6f76_">Select language: current language is English</span></div></div><div class="HeaderSearchAndWidgets_displayUnderLarge__gfZxL"><div><button data-component="IconButton" type="button" data-testid="mobile-search-button" data-instance="small" tabindex="0" class="prc-Button-ButtonBase-9n-Xk SearchBarButton_searchIconButton__6_wSC prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-labelledby="_R_n6f76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-search" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_n6f76_">Search or ask Copilot</span><button data-testid="search" data-instance="small" tabindex="0" aria-label="Search or ask Copilot" class="SearchBarButton_searchInputButton__nAE_3"><div class="d-flex align-items-center flex-grow-1 SearchBarButton_searchInputContainer__6BzsH" aria-hidden="true" tabindex="-1"><span class="SearchBarButton_queryText__kdYr6 SearchBarButton_placeholder__Ey1Vh"><span><span>Search or ask</span><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copilot mr-1 ml-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M7.998 15.035c-4.562 0-7.873-2.914-7.998-3.749V9.338c.085-.628.677-1.686 1.588-2.065.013-.07.024-.143.036-.218.029-.183.06-.384.126-.612-.201-.508-.254-1.084-.254-1.656 0-.87.128-1.769.693-2.484.579-.733 1.494-1.124 2.724-1.261 1.206-.134 2.262.034 2.944.765.05.053.096.108.139.165.044-.057.094-.112.143-.165.682-.731 1.738-.899 2.944-.765 1.23.137 2.145.528 2.724 1.261.566.715.693 1.614.693 2.484 0 .572-.053 1.148-.254 1.656.066.228.098.429.126.612.012.076.024.148.037.218.924.385 1.522 1.471 1.591 2.095v1.872c0 .766-3.351 3.795-8.002 3.795Zm0-1.485c2.28 0 4.584-1.11 5.002-1.433V7.862l-.023-.116c-.49.21-1.075.291-1.727.291-1.146 0-2.059-.327-2.71-.991A3.222 3.222 0 0 1 8 6.303a3.24 3.24 0 0 1-.544.743c-.65.664-1.563.991-2.71.991-.652 0-1.236-.081-1.727-.291l-.023.116v4.255c.419.323 2.722 1.433 5.002 1.433ZM6.762 2.83c-.193-.206-.637-.413-1.682-.297-1.019.113-1.479.404-1.713.7-.247.312-.369.789-.369 1.554 0 .793.129 1.171.308 1.371.162.181.519.379 1.442.379.853 0 1.339-.235 1.638-.54.315-.322.527-.827.617-1.553.117-.935-.037-1.395-.241-1.614Zm4.155-.297c-1.044-.116-1.488.091-1.681.297-.204.219-.359.679-.242 1.614.091.726.303 1.231.618 1.553.299.305.784.54 1.638.54.922 0 1.28-.198 1.442-.379.179-.2.308-.578.308-1.371 0-.765-.123-1.242-.37-1.554-.233-.296-.693-.587-1.713-.7Z"></path><path d="M6.25 9.037a.75.75 0 0 1 .75.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 .75-.75Zm4.25.75v1.501a.75.75 0 0 1-1.5 0V9.787a.75.75 0 0 1 1.5 0Z"></path></svg><span>Copilot</span></span></span></div><span class="SearchBarButton_searchIconContainer__Q1x0R" aria-hidden="true" tabindex="-1"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-search" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.499 4.499 0 1 0-8.997 0A4.499 4.499 0 0 0 11.5 7Z"></path></svg></span></button></div></div><div><button data-component="IconButton" type="button" data-testid="mobile-menu" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk HeaderSearchAndWidgets_menuButtonSearchClosed__zb1yd prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-labelledby="_R_7p6f76_" id="_R_96f76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-kebab-horizontal" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_7p6f76_">Open menu</span></div></div></div></header></div><div data-container="secondary-nav" data-testid="docs-secondary-bar" class="DocsSecondaryBar_bar__loD55"><div class="DocsSecondaryBar_leftSegment__sKB06"><div class="DocsSecondaryBar_toggleCell__jza1n"><button data-component="IconButton" type="button" data-testid="sidebar-collapse-toggle" aria-expanded="true" class="prc-Button-ButtonBase-9n-Xk DocsSecondaryBar_desktopOnly__idmgY color-fg-muted prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_lv76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-sidebar-expand" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.177 7.823 2.396-2.396A.25.25 0 0 1 7 5.604v4.792a.25.25 0 0 1-.427.177L4.177 8.177a.25.25 0 0 1 0-.354Z"></path><path d="M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25Zm1.75-.25a.25.25 0 0 0-.25.25v12.5c0 .138.112.25.25.25H9.5v-13Zm12.5 13a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11v13Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_lv76_">Collapse sidebar</span><button data-component="IconButton" type="button" data-testid="sidebar-mobile-toggle" aria-expanded="false" class="prc-Button-ButtonBase-9n-Xk DocsSecondaryBar_mobileOnly__VbJtM color-fg-muted prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_15v76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-sidebar-collapse" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M6.823 7.823a.25.25 0 0 1 0 .354l-2.396 2.396A.25.25 0 0 1 4 10.396V5.604a.25.25 0 0 1 .427-.177Z"></path><path d="M1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0 1 14.25 16H1.75A1.75 1.75 0 0 1 0 14.25V1.75C0 .784.784 0 1.75 0ZM1.5 1.75v12.5c0 .138.112.25.25.25H9.5v-13H1.75a.25.25 0 0 0-.25.25ZM11 14.5h3.25a.25.25 0 0 0 .25-.25V1.75a.25.25 0 0 0-.25-.25H11Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_15v76_">Expand sidebar</span></div><div class="BreadcrumbsScroller_scroller__552w3"><button data-component="IconButton" type="button" aria-hidden="true" tabindex="-1" class="prc-Button-ButtonBase-9n-Xk BreadcrumbsScroller_leftChevron__Bg3sS BreadcrumbsScroller_chevronHidden__fihME prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_pv76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-chevron-left" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M9.78 12.78a.75.75 0 0 1-1.06 0L4.47 8.53a.75.75 0 0 1 0-1.06l4.25-4.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042L6.06 8l3.72 3.72a.75.75 0 0 1 0 1.06Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_pv76_">Scroll breadcrumbs left</span><div class="BreadcrumbsScroller_scrollArea__pgK_q" data-search="breadcrumbs"><nav class="Primer_Brand__Breadcrumbs-module__Breadcrumbs___ANvyl Primer_Brand__Breadcrumbs-module__Breadcrumbs--default___q2JxW" aria-label="Breadcrumb" data-testid="breadcrumbs-bar" data-container="breadcrumbs"><ol class="Primer_Brand__Breadcrumbs-module__Breadcrumbs__list___S1xLw"><li class="Primer_Brand__Breadcrumbs-module__Breadcrumbs__item___IX25P"><a href="/en" class="Primer_Brand__InlineLink-module__InlineLink___U_Ama Primer_Brand__Breadcrumbs-module__Breadcrumbs__link___B3gbd" data-testid="breadcrumb-home" title="Home">Home</a></li><li class="Primer_Brand__Breadcrumbs-module__Breadcrumbs__item___IX25P"><a href="/en/authentication" class="Primer_Brand__InlineLink-module__InlineLink___U_Ama Primer_Brand__Breadcrumbs-module__Breadcrumbs__link___B3gbd" data-testid="breadcrumb-link" title="Authentication">Authentication</a></li><li class="Primer_Brand__Breadcrumbs-module__Breadcrumbs__item___IX25P"><a href="/en/authentication/keeping-your-account-and-data-secure" class="Primer_Brand__InlineLink-module__InlineLink___U_Ama Primer_Brand__Breadcrumbs-module__Breadcrumbs__link___B3gbd" data-testid="breadcrumb-link" title="Account security">Account security</a></li><li class="Primer_Brand__Breadcrumbs-module__Breadcrumbs__item___IX25P"><a href="/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation" class="Primer_Brand__InlineLink-module__InlineLink___U_Ama Primer_Brand__Breadcrumbs-module__Breadcrumbs__link___B3gbd" data-testid="breadcrumb-link" title="Token expiration">Token expiration</a></li></ol></nav></div><button data-component="IconButton" type="button" aria-hidden="true" tabindex="-1" class="prc-Button-ButtonBase-9n-Xk BreadcrumbsScroller_rightChevron__PB13q BreadcrumbsScroller_chevronHidden__fihME prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_1pv76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-chevron-right" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M6.22 3.22a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 0 1 0 1.06l-4.25 4.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L9.94 8 6.22 4.28a.75.75 0 0 1 0-1.06Z"></path></svg></button><span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" aria-hidden="true" id="_R_1pv76_">Scroll breadcrumbs right</span></div></div></div><div class="d-lg-flex"><div data-container="nav" data-mobile-open="false" class="position-sticky d-none border-right d-xxl-block SidebarNav_sidebarFull__pWg8v"><nav aria-labelledby="allproducts-menu" role="navigation" aria-label="Documentation navigation"><div class="px-4 pb-3 border-bottom d-none d-xxl-block"><h2 class="mt-3" id="allproducts-menu"><a rel="" data-testid="sidebar-product-xl" class="d-block pl-1 mb-2 h3 color-fg-default no-underline _product-title" aria-describedby="allproducts-menu" href="/en/authentication">Authentication</a></h2></div><div class="border-right overflow-y-auto d-none d-xxl-block bg-primary flex-shrink-0 SidebarNav_sidebarContentFull__LLcR7 SidebarNav_sidebarContentFullWithPadding__8LTjb" role="region" aria-label="Page navigation content"><div data-testid="sidebar" class="SidebarProduct_sidebar__h4M6_"><div data-testid="product-sidebar"><nav class="Primer_Brand__NavList-module__NavList___U7Jyj" aria-label="Product sidebar" data-testid="NavList"><ul class="Primer_Brand__NavList-module__NavList__list___K5lSx" data-testid="NavList-list"><li aria-hidden="true" style="display:none"><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX Primer_Brand__NavList-module__NavList__subNav--expanded___Wu6L6" aria-label="" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" data-testid="NavList-link" href="#"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt"></span></span></a></div></li></ul></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-1___rA6Ts Primer_Brand__NavList-module__NavList__item--expanded___b3doz" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><button id="_R_1j6v76H1_" type="button" class="Primer_Brand__NavList-module__NavList__link___lJiXk Primer_Brand__NavList-module__NavList__accordionButton___Jii1C" aria-expanded="true" aria-controls="_R_1j6v76_" data-testid="NavList-toggle"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down Primer_Brand__NavList-module__NavList__toggleIcon___hh94D" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Account security</span></span></button></div><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX Primer_Brand__NavList-module__NavList__subNav--expanded___Wu6L6" aria-labelledby="_R_1j6v76H1_" aria-label="Account security submenu" id="_R_1j6v76_" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Authentication to GitHub</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/creating-a-strong-password"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Create a strong password</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/switching-between-accounts"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Switching between accounts</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/verifying-new-devices-when-signing-in"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Verifying devices on sign in</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Update access credentials</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Manage personal access tokens</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Reviewing your SSH keys</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-deploy-keys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Deploy keys</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="page" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Token expiration</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/revoking-your-credentials"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Revoke your credentials</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Review security log</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/security-log-events"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Security log events</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Remove sensitive data</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">About anonymized URLs</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">GitHub&#x27;s IP addresses</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">SSH key fingerprints</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/sudo-mode"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Sudo mode</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/preventing-unauthorized-access"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Unauthorized access</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/keeping-your-account-and-data-secure/viewing-and-managing-your-sessions"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Viewing and managing sessions</span></span></a></div></li></ul></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-1___rA6Ts" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><button id="_R_2j6v76H1_" type="button" class="Primer_Brand__NavList-module__NavList__link___lJiXk Primer_Brand__NavList-module__NavList__accordionButton___Jii1C" aria-expanded="false" aria-controls="_R_2j6v76_" data-testid="NavList-toggle"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down Primer_Brand__NavList-module__NavList__toggleIcon___hh94D" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Secure your account with 2FA</span></span></button></div><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX" aria-labelledby="_R_2j6v76H1_" aria-label="Secure your account with 2FA submenu" id="_R_2j6v76_" aria-hidden="true" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">About 2FA</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-mandatory-two-factor-authentication"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">About mandatory 2FA</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Configure 2FA</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Configure 2FA recovery</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/accessing-github-using-two-factor-authentication"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Access GitHub with 2FA</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/countries-where-sms-authentication-is-supported"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Countries supporting SMS</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-your-two-factor-authentication-method"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Change 2FA method</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/troubleshooting-two-factor-authentication-issues"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Troubleshooting 2FA</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Recover an account with 2FA</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Disable 2FA</span></span></a></div></li></ul></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-1___rA6Ts" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><button id="_R_3j6v76H1_" type="button" class="Primer_Brand__NavList-module__NavList__link___lJiXk Primer_Brand__NavList-module__NavList__accordionButton___Jii1C" aria-expanded="false" aria-controls="_R_3j6v76_" data-testid="NavList-toggle"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down Primer_Brand__NavList-module__NavList__toggleIcon___hh94D" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Authenticate with a passkey</span></span></button></div><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX" aria-labelledby="_R_3j6v76H1_" aria-label="Authenticate with a passkey submenu" id="_R_3j6v76_" aria-hidden="true" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/authenticating-with-a-passkey/about-passkeys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">About passkeys</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/authenticating-with-a-passkey/managing-your-passkeys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Manage your passkeys</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/authenticating-with-a-passkey/signing-in-with-a-passkey"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Sign in with a passkey</span></span></a></div></li></ul></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-1___rA6Ts" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><button id="_R_4j6v76H1_" type="button" class="Primer_Brand__NavList-module__NavList__link___lJiXk Primer_Brand__NavList-module__NavList__accordionButton___Jii1C" aria-expanded="false" aria-controls="_R_4j6v76_" data-testid="NavList-toggle"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down Primer_Brand__NavList-module__NavList__toggleIcon___hh94D" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Connect with SSH</span></span></button></div><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX" aria-labelledby="_R_4j6v76H1_" aria-label="Connect with SSH submenu" id="_R_4j6v76_" aria-hidden="true" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/about-ssh"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">About SSH</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Check for existing SSH key</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Generate new SSH key</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Add a new SSH key</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Test your SSH connection</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">SSH key passphrases</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/using-ssh-agent-forwarding"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">SSH agent forwarding</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/connecting-to-github-with-ssh/managing-deploy-keys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Managing deploy keys</span></span></a></div></li></ul></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-1___rA6Ts" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><button id="_R_5j6v76H1_" type="button" class="Primer_Brand__NavList-module__NavList__link___lJiXk Primer_Brand__NavList-module__NavList__accordionButton___Jii1C" aria-expanded="false" aria-controls="_R_5j6v76_" data-testid="NavList-toggle"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down Primer_Brand__NavList-module__NavList__toggleIcon___hh94D" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Troubleshooting SSH</span></span></button></div><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX" aria-labelledby="_R_5j6v76H1_" aria-label="Troubleshooting SSH submenu" id="_R_5j6v76_" aria-hidden="true" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Use SSH over HTTPS port</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Recover SSH key passphrase</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/deleted-or-missing-ssh-keys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Deleted or missing SSH keys</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-host-key-verification-failed"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Error: Host key verification failed</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-permission-denied-publickey"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Permission denied (publickey)</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-bad-file-number"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Error: Bad file number</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-key-already-in-use"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Error: Key already in use</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-other-user"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Permission denied other-user</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-userother-repo"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Permission denied other-repo</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Agent failure to sign</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-ssh-add-illegal-option----apple-use-keychain"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">ssh-add &quot;illegal option&quot; error</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-ssl-certificate-problem-verify-that-the-ca-cert-is-ok"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">SSL certificate problem</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-unknown-key-type"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Error: Unknown key type</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-ssh/error-were-doing-an-ssh-key-audit"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">SSH key audit</span></span></a></div></li></ul></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-1___rA6Ts" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><button id="_R_6j6v76H1_" type="button" class="Primer_Brand__NavList-module__NavList__link___lJiXk Primer_Brand__NavList-module__NavList__accordionButton___Jii1C" aria-expanded="false" aria-controls="_R_6j6v76_" data-testid="NavList-toggle"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down Primer_Brand__NavList-module__NavList__toggleIcon___hh94D" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Verify commit signatures</span></span></button></div><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX" aria-labelledby="_R_6j6v76H1_" aria-label="Verify commit signatures submenu" id="_R_6j6v76_" aria-hidden="true" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/about-commit-signature-verification"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Commit signature verification</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/checking-for-existing-gpg-keys"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Existing GPG keys</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Generating a new GPG key</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Add a GPG key</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Tell Git about your signing key</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/associating-an-email-with-your-gpg-key"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Associate email with GPG key</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/signing-commits"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Signing commits</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/signing-tags"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Signing tags</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Displaying verification for all commits</span></span></a></div></li></ul></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-1___rA6Ts" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><button id="_R_7j6v76H1_" type="button" class="Primer_Brand__NavList-module__NavList__link___lJiXk Primer_Brand__NavList-module__NavList__accordionButton___Jii1C" aria-expanded="false" aria-controls="_R_7j6v76_" data-testid="NavList-toggle"><svg aria-hidden="true" focusable="false" class="octicon octicon-triangle-down Primer_Brand__NavList-module__NavList__toggleIcon___hh94D" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Troubleshoot verification</span></span></button></div><ul class="Primer_Brand__NavList-module__NavList__subNav___DZ2GX" aria-labelledby="_R_7j6v76H1_" aria-label="Troubleshoot verification submenu" id="_R_7j6v76_" aria-hidden="true" data-testid="NavList-sub-nav"><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-commit-signature-verification/checking-your-commit-and-tag-signature-verification-status"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Check verification status</span></span></a></div></li><li class="Primer_Brand__NavList-module__NavList__item___OceIg Primer_Brand__NavList-module__NavList__item--level-2___AEntj Primer_Brand__NavList-module__NavList__item--leaf___SN9hT" data-testid="NavList-item"><div class="Primer_Brand__NavList-module__NavList__itemContent___TyAP4"><a class="Primer_Brand__NavList-module__NavList__link___lJiXk" aria-current="false" data-testid="NavList-link" href="/en/authentication/troubleshooting-commit-signature-verification/using-a-verified-email-address-in-your-gpg-key"><span class="Primer_Brand__NavList-module__NavList__labelArea___N5Ya6"><span class="Primer_Brand__NavList-module__NavList__label___cZ4Jt">Use verified email in GPG key</span></span></a></div></li></ul></li></ul></nav></div></div></div></nav></div><div class="flex-column flex-1 min-width-0"><main id="main-content" class="DefaultLayout_mainContent__UI2BH"><div class="container-xl px-3 px-md-6 my-4"><div class="ArticleGridLayout_containerBox__lLLio"><div style="grid-area:topper"><div class="d-flex flex-items-baseline flex-justify-between" data-container="title"><h1 id="title-h1" class="border-bottom-0">Token expiration and revocation</h1></div></div><div id="article-intro" style="grid-area:intro" class="f4 pb-4"><div class="f2 color-fg-muted mb-3 Lead_container__m3L5f _page-intro" data-container="lead" data-testid="lead" data-search="lead"><p>Your tokens can expire and can also be revoked by you, applications you have authorized, and GitHub itself.</p></div></div><div data-container="toc" style="grid-area:sidebar;align-self:flex-start" class="ArticleGridLayout_sidebarBox__Cj_03 border-bottom border-lg-0 pb-4 mb-5 pb-xl-0 mb-xl-0"><div class="mb-3 ml-3"><div class="prc-ButtonGroup-ButtonGroup-vFUrY"><div><button class="Primer_Brand__Button-module__Button___lDruK Primer_Brand__Button-module__Button--secondary___akMC2 Primer_Brand__Button-module__Button--size-small___iNTn1 text-decoration-none color-fg-default ViewMarkdownButton_button__chhfE ViewMarkdownButton_copyButton__haGNh"><span class="Primer_Brand__Button-module__Button__leading-visual___FIPvg" data-testid="Button-leading-visual"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-copy Primer_Brand__Button-module__Button__icon-visual___zR2Hi" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z"></path><path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z"></path></svg></span><span class="Primer_Brand__Button-module__Button__text___Z3ocU"><span class="Primer_Brand__Text-module__Text___pecHN Primer_Brand__Text-module__Text-font--mona-sans___GpzSG Primer_Brand__Text-module__Text--default___DChoE Primer_Brand__Text-module__Text--100___csEom Primer_Brand__Text-module__Text--weight-medium___E0iQL Primer_Brand__Button-module__Button--label___lUBc0 Primer_Brand__Button-module__Button--label-secondary___DRJoJ">Copy as Markdown</span></span></button></div><div><button type="button" aria-label="More Markdown options" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk ViewMarkdownButton_button__chhfE" data-loading="false" data-size="medium" data-variant="default" id="_R_ireqv76_"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-triangle-down" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="m4.427 7.427 3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 7H4.604a.25.25 0 0 0-.177.427Z"></path></svg></button></div></div></div><h2 class="mb-1 ml-3 Minitocs_heading__f_xxP prc-Heading-Heading-MtWFE" id="in-this-article" aria-label="In this article">In this article</h2><nav data-testid="minitoc" class="Minitocs_miniToc__NaGol my-2" aria-labelledby="in-this-article"><ul class="prc-ActionList-ActionList-rPFF2" data-dividers="false" data-variant="inset"><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_4dmreqv76_--label" id="_R_4dmreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-revoked-after-reaching-its-expiration-date"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_4dmreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token revoked after reaching its expiration date</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_4lmreqv76_--label" id="_R_4lmreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-revoked-when-pushed-to-a-public-repository-or-public-gist"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_4lmreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token revoked when pushed to a public repository or public gist</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_4tmreqv76_--label" id="_R_4tmreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-expired-due-to-lack-of-use"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_4tmreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token expired due to lack of use</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_55mreqv76_--label" id="_R_55mreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-revoked-by-the-user"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_55mreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token revoked by the user</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_5dmreqv76_--label" id="_R_5dmreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-revoked-by-a-third-party"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_5dmreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token revoked by a third party</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_5lmreqv76_--label" id="_R_5lmreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-revoked-by-the-oauth-app"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_5lmreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token revoked by the OAuth app</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_5tmreqv76_--label" id="_R_5tmreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_5tmreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token revoked due to excess of tokens for an OAuth app with the same scope</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_65mreqv76_--label" id="_R_65mreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#user-token-expired-due-to-github-app-configuration"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_65mreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">User token expired due to GitHub App configuration</span></span></a></li><li data-has-description="false" class="prc-ActionList-ActionListItem-So4vC Minitocs_nested__JSAov"><a class="prc-ActionList-ActionListContent-KBb8- prc-Link-Link-9ZwDx" tabindex="0" aria-labelledby="_R_6dmreqv76_--label" id="_R_6dmreqv76_" data-size="medium" aria-current="false" style="--subitem-depth:0" href="#token-revoked-by-enterprise-owners"><span class="prc-ActionList-Spacer-4tR2m"></span><span class="prc-ActionList-ActionListSubContent-gKsFp" data-component="ActionList.Item--DividerContainer"><span id="_R_6dmreqv76_--label" class="prc-ActionList-ItemLabel-81ohH">Token revoked by enterprise owners</span></span></a></li></ul></nav></div><div data-container="article" style="grid-area:content" data-search="article-body"><div id="article-contents"><div class="MarkdownContent_markdownBody__v5MYy markdown-body"><p>When a token has expired or has been revoked, it can no longer be used to authenticate Git and API requests. It is not possible to restore an expired or revoked token, you or the application will need to create a new token.</p>
<p>This article explains the possible reasons your GitHub token might be revoked or expire.</p>
<div class="ghd-alert ghd-alert-accent" data-container="alert"><p class="ghd-alert-title"><svg version="1.1" width="16" height="16" viewBox="0 0 16 16" class="octicon mr-2" aria-hidden="true"><path d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"></path></svg>Note</p>
<p>
When a personal access token, OAuth app token, or GitHub App token expires or is revoked, you may see an <code>oauth_authorization.destroy</code> action in your security log. For more information, see <a href="/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log">Reviewing your security log</a>.</p>
</div>
<h2 id="token-revoked-after-reaching-its-expiration-date" tabindex="-1"><a class="heading-link" href="#token-revoked-after-reaching-its-expiration-date">Token revoked after reaching its expiration date<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>When you create a personal access token, we recommend that you set an expiration for your token. Upon reaching your token&#x27;s expiration date, the token is automatically revoked. For more information, see <a href="/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens">Managing your personal access tokens</a>.</p>
<h2 id="token-revoked-when-pushed-to-a-public-repository-or-public-gist" tabindex="-1"><a class="heading-link" href="#token-revoked-when-pushed-to-a-public-repository-or-public-gist">Token revoked when pushed to a public repository or public gist<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>If a valid OAuth token, GitHub App token, or personal access token is pushed to a public repository or public gist, the token will be automatically revoked.</p>
<h2 id="token-expired-due-to-lack-of-use" tabindex="-1"><a class="heading-link" href="#token-expired-due-to-lack-of-use">Token expired due to lack of use<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>GitHub will automatically revoke an OAuth token or personal access token when the token hasn&#x27;t been used in one year.</p>
<h2 id="token-revoked-by-the-user" tabindex="-1"><a class="heading-link" href="#token-revoked-by-the-user">Token revoked by the user<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>You can revoke your authorization of a GitHub App or OAuth app from your account settings which will revoke any tokens associated with the app. For more information, see <a href="/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps">Reviewing and revoking authorization of GitHub Apps</a> and <a href="/en/apps/oauth-apps/using-oauth-apps/reviewing-your-authorized-oauth-apps">Reviewing your authorized OAuth apps</a>.</p>
<p>Once an authorization is revoked, any tokens associated with the authorization will be revoked as well. To reauthorize an application, follow the instructions from the third-party application or website to connect your account on GitHub again.</p>
<p>You can also revoke all your credentials at once from your account settings. This is useful if you believe your account may be compromised or your hardware was lost or stolen. For more information, see <a href="/en/authentication/keeping-your-account-and-data-secure/revoking-your-credentials">Revoking your credentials</a>.</p>
<h2 id="token-revoked-by-a-third-party" tabindex="-1"><a class="heading-link" href="#token-revoked-by-a-third-party">Token revoked by a third party<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>To prevent unauthorized access using exposed tokens, GitHub recommends token revocation to ensure that a token can no longer be used to authenticate to GitHub. The credential revocation API supports revoking the following token types:</p>
<ul>
<li>Personal access tokens (classic) with the <code>ghp_</code> prefix</li>
<li>Fine-grained personal access tokens with the <code>github_pat_</code> prefix</li>
<li>OAuth app tokens with the <code>gho_</code> prefix</li>
<li>GitHub App user-to-server tokens with the <code>ghu_</code> prefix</li>
<li>GitHub App refresh tokens with the <code>ghr_</code> prefix</li>
</ul>
<p>If you find any of these tokens leaked on GitHub or elsewhere, you can submit a revocation request through the REST API. See <a href="/en/rest/credentials/revoke#revoke-a-list-of-credentials">Revocation</a> for the complete and authoritative list of supported token types.</p>
<p>When a valid token is submitted to GitHub&#x27;s credential revocation API, the token will be automatically revoked. This API allows a third party to revoke a token they do not own and helps protect the data associated with this token from unauthorized access, limiting the impact of exposed tokens.</p>
<p>To encourage reports and ensure that exposed tokens can be quickly and easily revoked, we do not require authentication for the revocation requests submitted through the API. As a result, GitHub is unable to provide further information about the source of the reported token.</p>
<h2 id="token-revoked-by-the-oauth-app" tabindex="-1"><a class="heading-link" href="#token-revoked-by-the-oauth-app">Token revoked by the OAuth app<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>The owner of an OAuth app can revoke an account&#x27;s authorization of their app, this will also revoke any tokens associated with the authorization. For more information about revoking authorizations of your OAuth app, see <a href="/en/rest/apps/oauth-applications#delete-an-app-authorization">REST API endpoints for OAuth authorizations</a>.</p>
<p>OAuth app owners can also revoke individual tokens associated with an authorization. For more information about revoking individual tokens for your OAuth app, see <a href="/en/rest/apps/oauth-applications#delete-an-app-token">REST API endpoints for OAuth authorizations</a>.</p>
<h2 id="token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope" tabindex="-1"><a class="heading-link" href="#token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope">Token revoked due to excess of tokens for an OAuth app with the same scope<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>There is a limit of ten tokens that are issued per user/application/scope combination, and a rate limit of ten tokens created per hour. If an application creates more than ten tokens for the same user and the same scopes, GitHub revokes one of the existing tokens with the same user/application/scope combination, chosen in this order:</p>
<ol>
<li>The oldest token that has never been used and that was created more than one minute ago. Tokens created within the last minute are usually protected, so that an application has time to use a token it has just created.</li>
<li>If there is no such token, but at least one token has been used, the token that was least recently used.</li>
<li>If no token has ever been used, the oldest token, even if it was created within the last minute.</li>
</ol>
<p>Hitting the hourly rate limit will not revoke your oldest token. Instead, it will trigger a re-authorization prompt within the browser, asking the user to double check the permissions they&#x27;re granting your app. This prompt is intended to give a break to any potential infinite loop the app is stuck in, since there&#x27;s little to no reason for an app to request ten tokens from the user within an hour.</p>
<h2 id="user-token-expired-due-to-github-app-configuration" tabindex="-1"><a class="heading-link" href="#user-token-expired-due-to-github-app-configuration">User token expired due to GitHub App configuration<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>User access tokens created by a GitHub App will expire after eight hours by default, and then must be regenerated using the included refresh token. Owners of GitHub Apps can optionally configure these tokens to never expire instead, but this is not recommended due to the security implications. For more information about configuring your GitHub App&#x27;s user access tokens, see <a href="/en/apps/maintaining-github-apps/activating-optional-features-for-github-apps">Activating optional features for GitHub Apps</a>.</p>
<h2 id="token-revoked-by-enterprise-owners" tabindex="-1"><a class="heading-link" href="#token-revoked-by-enterprise-owners">Token revoked by enterprise owners<span class="heading-link-symbol" aria-hidden="true"></span></a></h2>
<p>Enterprise owners on GitHub Enterprise Cloud can revoke SSO authorizations or delete credentials for individual users or in bulk when responding to security incidents. Revoking SSO authorizations removes access to SSO-protected organization resources, while deleting credentials (available for Enterprise Managed Users only) removes the credentials entirely.</p>
<p>For more information, see <a href="/en/enterprise-cloud@latest/admin/managing-iam/respond-to-incidents/revoke-authorizations-or-tokens">Revoking SSO authorizations or deleting credentials in your enterprise</a>.</p></div></div></div></div></div></main><footer data-container="footer"><section class="container-xl mt-lg-8 mt-6 px-3 px-md-6 no-print mx-auto"><h2 class="f3">Help and support</h2><div class="border-top border-color-secondary pt-6 SupportSection_supportGrid__XXBdA"><form class="Survey_underlineLinks__Z2RJW f5" data-testid="survey-form" aria-live="polite"><h3 id="survey-title" class="f4 mb-3">Did you find what you needed?</h3><input type="text" class="d-none" name="survey-token" value=""/><div class="mb-2" role="radiogroup" aria-labelledby="survey-title"><input class="Survey_visuallyHidden__Xh_nl Survey_customRadio__aNqUl" id="survey-yes" type="radio" aria-label="Yes" name="survey-vote" value="Y"/><label class="btn mr-1" for="survey-yes"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-thumbsup color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M8.347.631A.75.75 0 0 1 9.123.26l.238.04a3.25 3.25 0 0 1 2.591 4.098L11.494 6h.665a3.25 3.25 0 0 1 3.118 4.167l-1.135 3.859A2.751 2.751 0 0 1 11.503 16H6.586a3.75 3.75 0 0 1-2.184-.702A1.75 1.75 0 0 1 3 16H1.75A1.75 1.75 0 0 1 0 14.25v-6.5C0 6.784.784 6 1.75 6h3.417a.25.25 0 0 0 .217-.127ZM4.75 13.649l.396.33c.404.337.914.521 1.44.521h4.917a1.25 1.25 0 0 0 1.2-.897l1.135-3.859A1.75 1.75 0 0 0 12.159 7.5H10.5a.75.75 0 0 1-.721-.956l.731-2.558a1.75 1.75 0 0 0-1.127-2.14L6.69 6.611a1.75 1.75 0 0 1-1.523.889H4.75ZM3.25 7.5h-1.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25H3a.25.25 0 0 0 .25-.25Z"></path></svg> <!-- -->Yes</label><input class="Survey_visuallyHidden__Xh_nl Survey_customRadio__aNqUl" id="survey-no" type="radio" aria-label="No" name="survey-vote" value="N"/><label class="btn" for="survey-no"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-thumbsdown color-fg-muted" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M7.653 15.369a.75.75 0 0 1-.776.371l-.238-.04a3.25 3.25 0 0 1-2.591-4.099L4.506 10h-.665A3.25 3.25 0 0 1 .723 5.833l1.135-3.859A2.75 2.75 0 0 1 4.482 0H9.43c.78.003 1.538.25 2.168.702A1.752 1.752 0 0 1 12.989 0h1.272A1.75 1.75 0 0 1 16 1.75v6.5A1.75 1.75 0 0 1 14.25 10h-3.417a.25.25 0 0 0-.217.127ZM11.25 2.351l-.396-.33a2.248 2.248 0 0 0-1.44-.521H4.496a1.25 1.25 0 0 0-1.199.897L2.162 6.256A1.75 1.75 0 0 0 3.841 8.5H5.5a.75.75 0 0 1 .721.956l-.731 2.558a1.75 1.75 0 0 0 1.127 2.14L9.31 9.389a1.75 1.75 0 0 1 1.523-.889h.417Zm1.5 6.149h1.5a.25.25 0 0 0 .25-.25v-6.5a.25.25 0 0 0-.25-.25H13a.25.25 0 0 0-.25.25Z"></path></svg> <!-- -->No</label></div><a rel="" class="f6" target="_blank" href="/en/site-policy/privacy-policies/github-privacy-statement">Privacy policy</a></form><div class="f5 contribution"><h3 class="f4 mb-3">Help us make these docs great!</h3><p class="max-w-xs color-fg-muted mb-3">All GitHub docs are open source. See something that&#x27;s wrong or unclear? Submit a pull request.</p><a class="btn" href="https://github.com/github/docs/blob/main/content/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation.md"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-git-pull-request octicon mr-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z"></path></svg>Make a contribution</a><p class="color-fg-muted f6 mt-2"><a class="text-underline" href="/contributing" target="_blank" rel="noopener">Learn how to contribute</a></p></div><div><h3 class="mb-3 f4">Still need help?</h3><div class="mb-2"><a id="ask-community" href="https://github.com/orgs/community/discussions" class="text-underline"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-people octicon mr-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M2 5.5a3.5 3.5 0 1 1 5.898 2.549 5.508 5.508 0 0 1 3.034 4.084.75.75 0 1 1-1.482.235 4 4 0 0 0-7.9 0 .75.75 0 0 1-1.482-.236A5.507 5.507 0 0 1 3.102 8.05 3.493 3.493 0 0 1 2 5.5ZM11 4a3.001 3.001 0 0 1 2.22 5.018 5.01 5.01 0 0 1 2.56 3.012.749.749 0 0 1-.885.954.752.752 0 0 1-.549-.514 3.507 3.507 0 0 0-2.522-2.372.75.75 0 0 1-.574-.73v-.352a.75.75 0 0 1 .416-.672A1.5 1.5 0 0 0 11 5.5.75.75 0 0 1 11 4Zm-5.5-.5a2 2 0 1 0-.001 3.999A2 2 0 0 0 5.5 3.5Z"></path></svg>Ask the GitHub community</a></div><div><a id="support" href="https://support.github.com" class="text-underline"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-comment-discussion octicon mr-1" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M1.75 1h8.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 10.25 10H7.061l-2.574 2.573A1.458 1.458 0 0 1 2 11.543V10h-.25A1.75 1.75 0 0 1 0 8.25v-5.5C0 1.784.784 1 1.75 1ZM1.5 2.75v5.5c0 .138.112.25.25.25h1a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h3.5a.25.25 0 0 0 .25-.25v-5.5a.25.25 0 0 0-.25-.25h-8.5a.25.25 0 0 0-.25.25Zm13 2a.25.25 0 0 0-.25-.25h-.5a.75.75 0 0 1 0-1.5h.5c.966 0 1.75.784 1.75 1.75v5.5A1.75 1.75 0 0 1 14.25 12H14v1.543a1.458 1.458 0 0 1-2.487 1.03L9.22 12.28a.749.749 0 0 1 .326-1.275.749.749 0 0 1 .734.215l2.22 2.22v-2.19a.75.75 0 0 1 .75-.75h1a.25.25 0 0 0 .25-.25Z"></path></svg>Contact support</a></div></div></div></section><section class="container-xl px-3 mt-6 pb-8 px-md-6 color-fg-muted"><h2 class="f4 mb-2 col-12">Legal</h2><ul role="list" class="d-flex flex-wrap list-style-none"><li role="listitem" class="mr-3">© <!-- -->2026<!-- --> GitHub, Inc.</li><li role="listitem" class="mr-3"><a class="text-underline" href="/en/site-policy/github-terms/github-terms-of-service">Terms</a></li><li role="listitem" class="mr-3"><a class="text-underline" href="/en/site-policy/privacy-policies/github-privacy-statement">Privacy</a></li><li role="listitem" class="mr-3"><a class="text-underline" href="https://www.githubstatus.com/">Status</a></li><li role="listitem" class="mr-3"><a class="text-underline" href="https://github.com/pricing">Pricing</a></li><li role="listitem" class="mr-3"><a class="text-underline" href="https://services.github.com">Expert services</a></li><li role="listitem" class="mr-3"><a class="text-underline" href="https://github.blog">Blog</a></li></ul></section><div role="tooltip" class="position-fixed bottom-0 mb-4 right-0 mr-4 z-1 ScrollButton_transition200__rLxBo ScrollButton_opacity0__vjKQD ScrollButton_scrollWrapper__Vk_CC" aria-hidden="true"><button tabindex="-1" class="ghd-scroll-to-top tooltipped tooltipped-n tooltipped-no-delay btn circle border-1 d-flex flex-items-center flex-justify-center ScrollButton_customFocus__L3FsX ScrollButton_scrollButton__N0now" aria-label="Scroll to top"><svg data-component="Octicon" aria-hidden="true" focusable="false" class="octicon octicon-chevron-up" viewBox="0 0 16 16" width="16" height="16" fill="currentColor" display="inline-block" overflow="visible" style="vertical-align:text-bottom"><path d="M3.22 10.53a.749.749 0 0 1 0-1.06l4.25-4.25a.749.749 0 0 1 1.06 0l4.25 4.25a.749.749 0 1 1-1.06 1.06L8 6.811 4.28 10.53a.749.749 0 0 1-1.06 0Z"></path></svg></button></div></footer></div></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"mainContext":{"allVersions":{"free-pro-team@latest":{"version":"free-pro-team@latest","versionTitle":"Free, Pro, \u0026 Team","apiVersions":["2026-03-10","2022-11-28"],"latestApiVersion":"2026-03-10"},"enterprise-cloud@latest":{"version":"enterprise-cloud@latest","versionTitle":"Enterprise Cloud","apiVersions":["2026-03-10","2022-11-28"],"latestApiVersion":"2026-03-10"},"enterprise-server@3.22":{"version":"enterprise-server@3.22","versionTitle":"Enterprise Server 3.22","apiVersions":["2026-03-10","2022-11-28"],"latestApiVersion":"2026-03-10","isGHES":true},"enterprise-server@3.21":{"version":"enterprise-server@3.21","versionTitle":"Enterprise Server 3.21","apiVersions":["2026-03-10","2022-11-28"],"latestApiVersion":"2026-03-10","isGHES":true},"enterprise-server@3.20":{"version":"enterprise-server@3.20","versionTitle":"Enterprise Server 3.20","apiVersions":["2022-11-28"],"latestApiVersion":"2022-11-28","isGHES":true},"enterprise-server@3.19":{"version":"enterprise-server@3.19","versionTitle":"Enterprise Server 3.19","apiVersions":["2022-11-28"],"latestApiVersion":"2022-11-28","isGHES":true},"enterprise-server@3.18":{"version":"enterprise-server@3.18","versionTitle":"Enterprise Server 3.18","apiVersions":["2022-11-28"],"latestApiVersion":"2022-11-28","isGHES":true},"enterprise-server@3.17":{"version":"enterprise-server@3.17","versionTitle":"Enterprise Server 3.17","apiVersions":["2022-11-28"],"latestApiVersion":"2022-11-28","isGHES":true}},"breadcrumbs":[{"href":"/en/authentication","title":"Authentication"},{"href":"/en/authentication/keeping-your-account-and-data-secure","title":"Account security"},{"href":"/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation","title":"Token expiration"}],"communityRedirect":{},"currentCategory":"keeping-your-account-and-data-secure","currentLayoutName":"default","currentPathWithoutLanguage":"/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation","currentProduct":{"id":"authentication","name":"Authentication","href":"/authentication","dir":"content/authentication","toc":"content/authentication/index.md","wip":false,"hidden":false,"versions":["free-pro-team@latest","enterprise-cloud@latest","enterprise-server@3.22","enterprise-server@3.21","enterprise-server@3.20","enterprise-server@3.19","enterprise-server@3.18","enterprise-server@3.17"]},"currentProductName":"Authentication","currentProductTree":null,"currentVersion":"free-pro-team@latest","data":{"ui":{"alerts":{"NOTE":"Note","IMPORTANT":"Important","WARNING":"Warning","TIP":"Tip","CAUTION":"Caution"},"header":{"github_docs":"GitHub Docs","contact":"Contact","notices":{"release_candidate":" is currently available as a \u003ca href=\"/admin/overview/about-upgrades-to-new-releases\"\u003erelease candidate\u003c/a\u003e.","early_access":"📣 Please \u003cb\u003edo not share\u003c/b\u003e this URL publicly. This page contains content about a private preview feature.","release_notes_use_latest":"Please use the latest release for the latest security, performance, and bug fixes.","machine_translation":"Some of this page may have been machine-translated or translated using AI.","ghes_release_notes_upgrade_patch_only":"📣 This is not the \u003ca href=\"#{{ latestPatch }}\"\u003elatest patch release\u003c/a\u003e of Enterprise Server.","ghes_release_notes_upgrade_release_only":"📣 This is not the \u003ca href=\"/enterprise-server@{{ latestRelease }}/admin/release-notes\"\u003elatest release\u003c/a\u003e of Enterprise Server.","ghes_release_notes_upgrade_patch_and_release":"📣 This is not the \u003ca href=\"#{{ latestPatch }}\"\u003elatest patch release\u003c/a\u003e of this release series, and this is not the \u003ca href=\"/enterprise-server@{{ latestRelease }}/admin/release-notes\"\u003elatest release\u003c/a\u003e of Enterprise Server."},"sign_up_cta":"Sign up","menu":"Menu","open_menu_label":"Open menu","go_home":"Home","collapse_sidebar":"Collapse sidebar","expand_sidebar":"Expand sidebar","scroll_breadcrumbs_left":"Scroll breadcrumbs left","scroll_breadcrumbs_right":"Scroll breadcrumbs right"},"search":{"input":{"placeholder":"Search or ask {{icon}} Copilot","placeholder_no_icon":"Search or ask Copilot","shortcut":"Type {{icon}} to search"},"overlay":{"aria_label":"Search overlay","input_aria_label":"Search or ask Copilot","suggestions_list_aria_label":"Search suggestions","ai_suggestions_list_aria_label":"Copilot search suggestions","general_suggestions_list_aria_label":"Docs search suggestions","general_suggestions_list_heading":"Search docs","ai_autocomplete_list_heading":"Ask Copilot","give_feedback":"Give feedback","beta_tag":"Beta","return_to_search":"Return to search","clear_search_query":"Clear","view_all_search_results":"View more results","no_results_found":"No results found","no_results_found_announcement":"Search Docs: No results found","search_docs_with_query":"Search docs for \"{{query}}\"","privacy_disclaimer":"For product and service improvement purposes, the GitHub Docs team will retain questions and answers generated in the Docs search function. Please see the \u003ca href=\"https://docs.github.com/privacy\"\u003e\u003cu\u003eGitHub Privacy Statement\u003c/u\u003e\u003c/a\u003e to review how GitHub collects and uses your data."},"ai":{"disclaimer":"\u003ca href=\"https://docs.github.com/en/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-chat-in-githubcom\"\u003eCopilot\u003c/a\u003e uses AI. Check for mistakes.","references":"Copilot Sources","loading_status_message":"Loading Copilot response...","done_loading_status_message":"Done loading Copilot response","share_answer":"Copy answer URL","share_copied_announcement":"Copied share URL!","thumbs_up":"This answer was helpful","thumbs_down":"This answer was not helpful","thumbs_announcement":"Thank you for your feedback!","back_to_search":"Back to search","responses":{"unable_to_answer":"Sorry, I'm unable to answer that question. Check that you selected the correct GitHub version or try a different question.","query_too_large":"Sorry, your question is too long. Please try shortening it and asking again.","asked_too_many_times":"Sorry, you've asked too many questions in a short time period. Please wait a few minutes and try again.","invalid_query":"Sorry, I'm unable to answer that question. Please try asking a different question."},"response":{"copy_code":"Copy code to clipboard","copy_code_lang":"Copy {language} code to clipboard","copied_code":"Copied!"}},"failure":{"general_title":"There was an error loading search results.","ai_title":"There was an error loading Copilot.","description":"You can still use this field to search our docs."}},"old_search":{"description":"Enter a search term to find it in the GitHub Docs.","placeholder":"Search GitHub Docs","label":"Search GitHub Docs"},"survey":{"able_to_find":"Did you find what you needed?","yes":"Yes","no":"No","cancel":"Cancel","additional_feedback":"Can you tell us more about your rating? (Optional)","optional":"Optional","required":"Required","email_label":"Leave your email if we can contact you. (Optional)","email_validation":"Please enter a valid email address","send":"Send","feedback":"Thank you! We received your feedback.","not_support":"If you need a reply, please contact \u003ca href=\"https://support.github.com/\"\u003esupport\u003c/a\u003e.","privacy_policy":"Privacy policy","server_error":"Unable to process comment at the moment. Please try again."},"toc":{"getting_started":"Getting started","popular":"Popular","startHere":"Start here","whats_new":"What's new","all_changelogs":"All changelog posts"},"meta":{"default_description":"Get started, troubleshoot, and make the most of GitHub. Documentation for new users, developers, administrators, and all of GitHub's products."},"scroll_button":{"scroll_to_top":"Scroll to top"},"pages":{"article_version":"Article version","miniToc":"In this article","all_enterprise_releases":"All Enterprise Server releases","about_versions":"About versions","permissions_callout_title":"Who can use this feature?","copy_as_markdown":"Copy as Markdown","copy_as_markdown_desc":"Use with any LLM","view_as_markdown":"View as Markdown","view_as_markdown_desc":"Open page in another tab","ask_copilot":"Ask Copilot","ask_copilot_desc":"Open directly in Copilot Chat","more_markdown_options":"More Markdown options","opens_in_new_tab":"(opens in new tab)","copied":"Copied!"},"picker":{"language_picker_label":"Language","product_picker_default_text":"All products","version_picker_default_text":"Choose a version"},"footer":{"support_heading":"Help and support","legal_heading":"Legal","imprint":"Imprint","terms":"Terms","privacy":"Privacy","status":"Status","pricing":"Pricing","expert_services":"Expert services","blog":"Blog","machine":"Some of this content may be machine- or AI-translated."},"contribution_cta":{"title":"Help us make these docs great!","body":"All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.","button":"Make a contribution","to_guidelines":"Learn how to contribute"},"support":{"still_need_help":"Still need help?","contact_support":"Contact support","ask_community":"Ask the GitHub community"},"rest":{"banner":{"api_versioned":"The REST API is now versioned.","api_version_info":"For more information, see \"\u003ca href=\"{{ versionWithApiVersion }}/rest/overview/api-versions\"\u003eAbout API versioning\u003c/a\u003e.\"","ghes_api_versioned":"After a site administrator upgrades your Enterprise Server instance to {{ firstGhesReleaseWithApiVersions.versionTitle }} or later, the REST API will be versioned. To learn how to find your instance's version, see \"\u003ca href=\"/{{ currentVersion }}/get-started/learning-about-github/about-versions-of-github-docs#github-enterprise-server\"\u003eAbout versions of GitHub Docs\u003c/a\u003e\".","redirect_notice":"We've recently moved some of the REST API documentation.","redirect_repo":"If you can't find what you're looking for, you might try the new {{ newRestPagesLinks }} REST API pages.","redirect_enterprise":"If you can't find what you're looking for, you might try the {{ actionsPageLink }} REST API page.","actions_api_title":"Actions"},"versioning":{"about_versions":"About REST API versions"},"overview":{"permissions":{"access":"Access","endpoints":"Endpoint","tokens":"Token types","additionalPermissions":"Additional permissions","uat":"UAT","iat":"IAT"}},"screen_reader_text_checkmark_icon":"Multiple permissions are required, or a different permission may be used. For more information about the permissions, see the documentation for this endpoint."},"cookbook_landing":{"spotlight":"Spotlight","explore_articles":"Explore {{ number }} examples","reset_filters":"Reset filters","search_articles":"Search examples","category":"Category","complexity":"Complexity","surface":"Surface"},"code_tabs":{"aria_label":"Code languages"},"popovers":{"role_description":"hovercard link"}},"reusables":{},"variables":{"release_candidate":{"version":"enterprise-server@3.22"}}},"enterpriseServerReleases":{"isOldestReleaseDeprecated":false,"oldestSupported":"3.17","nextDeprecationDate":"2026-08-25","supported":["3.22","3.21","3.20","3.19","3.18","3.17"],"releasesWithOldestDeprecationDate":["3.17"]},"enterpriseServerVersions":["enterprise-server@3.22","enterprise-server@3.21","enterprise-server@3.20","enterprise-server@3.19","enterprise-server@3.18","enterprise-server@3.17"],"error":"","featureFlags":{},"fullUrl":"https://docs-internal.github.com/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation","isHomepageVersion":false,"nonEnterpriseDefaultVersion":"free-pro-team@latest","page":{"documentType":"article","contentType":null,"title":"Token expiration and revocation","fullTitle":"Token expiration and revocation - GitHub Docs","introPlainText":"Your tokens can expire and can also be revoked by you, applications you have authorized, and GitHub itself.","applicableVersions":["free-pro-team@latest","enterprise-cloud@latest","enterprise-server@3.22","enterprise-server@3.21","enterprise-server@3.20","enterprise-server@3.19","enterprise-server@3.18","enterprise-server@3.17"],"hidden":false,"noEarlyAccessBanner":false,"docsTeamMetrics":null},"relativePath":"authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation.md","sidebarTree":{"href":"/en/authentication","title":"Authentication","childPages":[{"href":"/en/authentication/keeping-your-account-and-data-secure","title":"Account security","childPages":[{"href":"/en/authentication/keeping-your-account-and-data-secure/about-authentication-to-github","title":"Authentication to GitHub","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/creating-a-strong-password","title":"Create a strong password","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/switching-between-accounts","title":"Switching between accounts","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/verifying-new-devices-when-signing-in","title":"Verifying devices on sign in","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/updating-your-github-access-credentials","title":"Update access credentials","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens","title":"Manage personal access tokens","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-ssh-keys","title":"Reviewing your SSH keys","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-deploy-keys","title":"Deploy keys","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation","title":"Token expiration","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/revoking-your-credentials","title":"Revoke your credentials","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log","title":"Review security log","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/security-log-events","title":"Security log events","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository","title":"Remove sensitive data","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls","title":"About anonymized URLs","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/about-githubs-ip-addresses","title":"GitHub's IP addresses","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints","title":"SSH key fingerprints","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/sudo-mode","title":"Sudo mode","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/preventing-unauthorized-access","title":"Unauthorized access","childPages":[]},{"href":"/en/authentication/keeping-your-account-and-data-secure/viewing-and-managing-your-sessions","title":"Viewing and managing sessions","childPages":[]}]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa","title":"Secure your account with 2FA","childPages":[{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication","title":"About 2FA","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-mandatory-two-factor-authentication","title":"About mandatory 2FA","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication","title":"Configure 2FA","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/configuring-two-factor-authentication-recovery-methods","title":"Configure 2FA recovery","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/accessing-github-using-two-factor-authentication","title":"Access GitHub with 2FA","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/countries-where-sms-authentication-is-supported","title":"Countries supporting SMS","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/changing-your-two-factor-authentication-method","title":"Change 2FA method","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/troubleshooting-two-factor-authentication-issues","title":"Troubleshooting 2FA","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/recovering-your-account-if-you-lose-your-2fa-credentials","title":"Recover an account with 2FA","childPages":[]},{"href":"/en/authentication/securing-your-account-with-two-factor-authentication-2fa/disabling-two-factor-authentication-for-your-personal-account","title":"Disable 2FA","childPages":[]}]},{"href":"/en/authentication/authenticating-with-a-passkey","title":"Authenticate with a passkey","childPages":[{"href":"/en/authentication/authenticating-with-a-passkey/about-passkeys","title":"About passkeys","childPages":[]},{"href":"/en/authentication/authenticating-with-a-passkey/managing-your-passkeys","title":"Manage your passkeys","childPages":[]},{"href":"/en/authentication/authenticating-with-a-passkey/signing-in-with-a-passkey","title":"Sign in with a passkey","childPages":[]}]},{"href":"/en/authentication/connecting-to-github-with-ssh","title":"Connect with SSH","childPages":[{"href":"/en/authentication/connecting-to-github-with-ssh/about-ssh","title":"About SSH","childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/checking-for-existing-ssh-keys","title":"Check for existing SSH key","childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent","title":"Generate new SSH key","childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account","title":"Add a new SSH key","childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/testing-your-ssh-connection","title":"Test your SSH connection","childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/working-with-ssh-key-passphrases","title":"SSH key passphrases","childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/using-ssh-agent-forwarding","title":"SSH agent forwarding","childPages":[]},{"href":"/en/authentication/connecting-to-github-with-ssh/managing-deploy-keys","title":"Managing deploy keys","childPages":[]}],"layout":"journey-landing"},{"href":"/en/authentication/troubleshooting-ssh","title":"Troubleshooting SSH","childPages":[{"href":"/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port","title":"Use SSH over HTTPS port","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/recovering-your-ssh-key-passphrase","title":"Recover SSH key passphrase","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/deleted-or-missing-ssh-keys","title":"Deleted or missing SSH keys","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-host-key-verification-failed","title":"Error: Host key verification failed","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-permission-denied-publickey","title":"Permission denied (publickey)","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-bad-file-number","title":"Error: Bad file number","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-key-already-in-use","title":"Error: Key already in use","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-other-user","title":"Permission denied other-user","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-permission-to-userrepo-denied-to-userother-repo","title":"Permission denied other-repo","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-agent-admitted-failure-to-sign","title":"Agent failure to sign","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-ssh-add-illegal-option----apple-use-keychain","title":"ssh-add \"illegal option\" error","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-ssl-certificate-problem-verify-that-the-ca-cert-is-ok","title":"SSL certificate problem","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-unknown-key-type","title":"Error: Unknown key type","childPages":[]},{"href":"/en/authentication/troubleshooting-ssh/error-were-doing-an-ssh-key-audit","title":"SSH key audit","childPages":[]}]},{"href":"/en/authentication/managing-commit-signature-verification","title":"Verify commit signatures","childPages":[{"href":"/en/authentication/managing-commit-signature-verification/about-commit-signature-verification","title":"Commit signature verification","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/checking-for-existing-gpg-keys","title":"Existing GPG keys","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/generating-a-new-gpg-key","title":"Generating a new GPG key","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/adding-a-gpg-key-to-your-github-account","title":"Add a GPG key","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/telling-git-about-your-signing-key","title":"Tell Git about your signing key","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/associating-an-email-with-your-gpg-key","title":"Associate email with GPG key","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/signing-commits","title":"Signing commits","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/signing-tags","title":"Signing tags","childPages":[]},{"href":"/en/authentication/managing-commit-signature-verification/displaying-verification-statuses-for-all-of-your-commits","title":"Displaying verification for all commits","childPages":[]}],"layout":"journey-landing"},{"href":"/en/authentication/troubleshooting-commit-signature-verification","title":"Troubleshoot verification","childPages":[{"href":"/en/authentication/troubleshooting-commit-signature-verification/checking-your-commit-and-tag-signature-verification-status","title":"Check verification status","childPages":[]},{"href":"/en/authentication/troubleshooting-commit-signature-verification/using-a-verified-email-address-in-your-gpg-key","title":"Use verified email in GPG key","childPages":[]}]}],"layout":"discovery-landing"},"sidebarExpanded":{},"sidebarCollapsed":false,"status":200,"xHost":"docs.github.com"},"articleContext":{"title":"Token expiration and revocation","intro":"\u003cp\u003eYour tokens can expire and can also be revoked by you, applications you have authorized, and GitHub itself.\u003c/p\u003e","effectiveDate":"","renderedPage":"\u003cp\u003eWhen a token has expired or has been revoked, it can no longer be used to authenticate Git and API requests. It is not possible to restore an expired or revoked token, you or the application will need to create a new token.\u003c/p\u003e\n\u003cp\u003eThis article explains the possible reasons your GitHub token might be revoked or expire.\u003c/p\u003e\n\u003cdiv class=\"ghd-alert ghd-alert-accent\" data-container=\"alert\"\u003e\u003cp class=\"ghd-alert-title\"\u003e\u003csvg version=\"1.1\" width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" class=\"octicon mr-2\" aria-hidden\u003e\u003cpath d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z\"\u003e\u003c/path\u003e\u003c/svg\u003eNote\u003c/p\u003e\n\u003cp\u003e\nWhen a personal access token, OAuth app token, or GitHub App token expires or is revoked, you may see an \u003ccode\u003eoauth_authorization.destroy\u003c/code\u003e action in your security log. For more information, see \u003ca href=\"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log\"\u003eReviewing your security log\u003c/a\u003e.\u003c/p\u003e\n\u003c/div\u003e\n\u003ch2 id=\"token-revoked-after-reaching-its-expiration-date\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-revoked-after-reaching-its-expiration-date\"\u003eToken revoked after reaching its expiration date\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eWhen you create a personal access token, we recommend that you set an expiration for your token. Upon reaching your token's expiration date, the token is automatically revoked. For more information, see \u003ca href=\"/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens\"\u003eManaging your personal access tokens\u003c/a\u003e.\u003c/p\u003e\n\u003ch2 id=\"token-revoked-when-pushed-to-a-public-repository-or-public-gist\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-revoked-when-pushed-to-a-public-repository-or-public-gist\"\u003eToken revoked when pushed to a public repository or public gist\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eIf a valid OAuth token, GitHub App token, or personal access token is pushed to a public repository or public gist, the token will be automatically revoked.\u003c/p\u003e\n\u003ch2 id=\"token-expired-due-to-lack-of-use\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-expired-due-to-lack-of-use\"\u003eToken expired due to lack of use\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eGitHub will automatically revoke an OAuth token or personal access token when the token hasn't been used in one year.\u003c/p\u003e\n\u003ch2 id=\"token-revoked-by-the-user\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-revoked-by-the-user\"\u003eToken revoked by the user\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eYou can revoke your authorization of a GitHub App or OAuth app from your account settings which will revoke any tokens associated with the app. For more information, see \u003ca href=\"/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps\"\u003eReviewing and revoking authorization of GitHub Apps\u003c/a\u003e and \u003ca href=\"/en/apps/oauth-apps/using-oauth-apps/reviewing-your-authorized-oauth-apps\"\u003eReviewing your authorized OAuth apps\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eOnce an authorization is revoked, any tokens associated with the authorization will be revoked as well. To reauthorize an application, follow the instructions from the third-party application or website to connect your account on GitHub again.\u003c/p\u003e\n\u003cp\u003eYou can also revoke all your credentials at once from your account settings. This is useful if you believe your account may be compromised or your hardware was lost or stolen. For more information, see \u003ca href=\"/en/authentication/keeping-your-account-and-data-secure/revoking-your-credentials\"\u003eRevoking your credentials\u003c/a\u003e.\u003c/p\u003e\n\u003ch2 id=\"token-revoked-by-a-third-party\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-revoked-by-a-third-party\"\u003eToken revoked by a third party\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eTo prevent unauthorized access using exposed tokens, GitHub recommends token revocation to ensure that a token can no longer be used to authenticate to GitHub. The credential revocation API supports revoking the following token types:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003ePersonal access tokens (classic) with the \u003ccode\u003eghp_\u003c/code\u003e prefix\u003c/li\u003e\n\u003cli\u003eFine-grained personal access tokens with the \u003ccode\u003egithub_pat_\u003c/code\u003e prefix\u003c/li\u003e\n\u003cli\u003eOAuth app tokens with the \u003ccode\u003egho_\u003c/code\u003e prefix\u003c/li\u003e\n\u003cli\u003eGitHub App user-to-server tokens with the \u003ccode\u003eghu_\u003c/code\u003e prefix\u003c/li\u003e\n\u003cli\u003eGitHub App refresh tokens with the \u003ccode\u003eghr_\u003c/code\u003e prefix\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eIf you find any of these tokens leaked on GitHub or elsewhere, you can submit a revocation request through the REST API. See \u003ca href=\"/en/rest/credentials/revoke#revoke-a-list-of-credentials\"\u003eRevocation\u003c/a\u003e for the complete and authoritative list of supported token types.\u003c/p\u003e\n\u003cp\u003eWhen a valid token is submitted to GitHub's credential revocation API, the token will be automatically revoked. This API allows a third party to revoke a token they do not own and helps protect the data associated with this token from unauthorized access, limiting the impact of exposed tokens.\u003c/p\u003e\n\u003cp\u003eTo encourage reports and ensure that exposed tokens can be quickly and easily revoked, we do not require authentication for the revocation requests submitted through the API. As a result, GitHub is unable to provide further information about the source of the reported token.\u003c/p\u003e\n\u003ch2 id=\"token-revoked-by-the-oauth-app\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-revoked-by-the-oauth-app\"\u003eToken revoked by the OAuth app\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eThe owner of an OAuth app can revoke an account's authorization of their app, this will also revoke any tokens associated with the authorization. For more information about revoking authorizations of your OAuth app, see \u003ca href=\"/en/rest/apps/oauth-applications#delete-an-app-authorization\"\u003eREST API endpoints for OAuth authorizations\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eOAuth app owners can also revoke individual tokens associated with an authorization. For more information about revoking individual tokens for your OAuth app, see \u003ca href=\"/en/rest/apps/oauth-applications#delete-an-app-token\"\u003eREST API endpoints for OAuth authorizations\u003c/a\u003e.\u003c/p\u003e\n\u003ch2 id=\"token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope\"\u003eToken revoked due to excess of tokens for an OAuth app with the same scope\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eThere is a limit of ten tokens that are issued per user/application/scope combination, and a rate limit of ten tokens created per hour. If an application creates more than ten tokens for the same user and the same scopes, GitHub revokes one of the existing tokens with the same user/application/scope combination, chosen in this order:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003eThe oldest token that has never been used and that was created more than one minute ago. Tokens created within the last minute are usually protected, so that an application has time to use a token it has just created.\u003c/li\u003e\n\u003cli\u003eIf there is no such token, but at least one token has been used, the token that was least recently used.\u003c/li\u003e\n\u003cli\u003eIf no token has ever been used, the oldest token, even if it was created within the last minute.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eHitting the hourly rate limit will not revoke your oldest token. Instead, it will trigger a re-authorization prompt within the browser, asking the user to double check the permissions they're granting your app. This prompt is intended to give a break to any potential infinite loop the app is stuck in, since there's little to no reason for an app to request ten tokens from the user within an hour.\u003c/p\u003e\n\u003ch2 id=\"user-token-expired-due-to-github-app-configuration\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#user-token-expired-due-to-github-app-configuration\"\u003eUser token expired due to GitHub App configuration\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eUser access tokens created by a GitHub App will expire after eight hours by default, and then must be regenerated using the included refresh token. Owners of GitHub Apps can optionally configure these tokens to never expire instead, but this is not recommended due to the security implications. For more information about configuring your GitHub App's user access tokens, see \u003ca href=\"/en/apps/maintaining-github-apps/activating-optional-features-for-github-apps\"\u003eActivating optional features for GitHub Apps\u003c/a\u003e.\u003c/p\u003e\n\u003ch2 id=\"token-revoked-by-enterprise-owners\" tabindex=\"-1\"\u003e\u003ca class=\"heading-link\" href=\"#token-revoked-by-enterprise-owners\"\u003eToken revoked by enterprise owners\u003cspan class=\"heading-link-symbol\" aria-hidden=\"true\"\u003e\u003c/span\u003e\u003c/a\u003e\u003c/h2\u003e\n\u003cp\u003eEnterprise owners on GitHub Enterprise Cloud can revoke SSO authorizations or delete credentials for individual users or in bulk when responding to security incidents. Revoking SSO authorizations removes access to SSO-protected organization resources, while deleting credentials (available for Enterprise Managed Users only) removes the credentials entirely.\u003c/p\u003e\n\u003cp\u003eFor more information, see \u003ca href=\"/en/enterprise-cloud@latest/admin/managing-iam/respond-to-incidents/revoke-authorizations-or-tokens\"\u003eRevoking SSO authorizations or deleting credentials in your enterprise\u003c/a\u003e.\u003c/p\u003e","renderedPageHast":{"type":"root","children":[{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When a token has expired or has been revoked, it can no longer be used to authenticate Git and API requests. It is not possible to restore an expired or revoked token, you or the application will need to create a new token."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"This article explains the possible reasons your GitHub token might be revoked or expire."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"div","properties":{"className":"ghd-alert ghd-alert-accent","dataContainer":"alert"},"children":[{"type":"element","tagName":"p","properties":{"className":["ghd-alert-title"]},"children":[{"type":"element","tagName":"svg","properties":{"version":"1.1","width":16,"height":16,"viewBox":"0 0 16 16","className":["octicon","mr-2"],"ariaHidden":true},"children":[{"type":"element","tagName":"path","properties":{"d":"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},"children":[]}]},{"type":"text","value":"Note"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"\nWhen a personal access token, OAuth app token, or GitHub App token expires or is revoked, you may see an "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"oauth_authorization.destroy"}]},{"type":"text","value":" action in your security log. For more information, see "},{"type":"element","tagName":"a","properties":{"href":"/en/authentication/keeping-your-account-and-data-secure/reviewing-your-security-log"},"children":[{"type":"text","value":"Reviewing your security log"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-revoked-after-reaching-its-expiration-date","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-revoked-after-reaching-its-expiration-date"},"children":[{"type":"text","value":"Token revoked after reaching its expiration date"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When you create a personal access token, we recommend that you set an expiration for your token. Upon reaching your token's expiration date, the token is automatically revoked. For more information, see "},{"type":"element","tagName":"a","properties":{"href":"/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens"},"children":[{"type":"text","value":"Managing your personal access tokens"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-revoked-when-pushed-to-a-public-repository-or-public-gist","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-revoked-when-pushed-to-a-public-repository-or-public-gist"},"children":[{"type":"text","value":"Token revoked when pushed to a public repository or public gist"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If a valid OAuth token, GitHub App token, or personal access token is pushed to a public repository or public gist, the token will be automatically revoked."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-expired-due-to-lack-of-use","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-expired-due-to-lack-of-use"},"children":[{"type":"text","value":"Token expired due to lack of use"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"GitHub will automatically revoke an OAuth token or personal access token when the token hasn't been used in one year."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-revoked-by-the-user","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-revoked-by-the-user"},"children":[{"type":"text","value":"Token revoked by the user"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can revoke your authorization of a GitHub App or OAuth app from your account settings which will revoke any tokens associated with the app. For more information, see "},{"type":"element","tagName":"a","properties":{"href":"/en/apps/using-github-apps/reviewing-and-revoking-authorization-of-github-apps"},"children":[{"type":"text","value":"Reviewing and revoking authorization of GitHub Apps"}]},{"type":"text","value":" and "},{"type":"element","tagName":"a","properties":{"href":"/en/apps/oauth-apps/using-oauth-apps/reviewing-your-authorized-oauth-apps"},"children":[{"type":"text","value":"Reviewing your authorized OAuth apps"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Once an authorization is revoked, any tokens associated with the authorization will be revoked as well. To reauthorize an application, follow the instructions from the third-party application or website to connect your account on GitHub again."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"You can also revoke all your credentials at once from your account settings. This is useful if you believe your account may be compromised or your hardware was lost or stolen. For more information, see "},{"type":"element","tagName":"a","properties":{"href":"/en/authentication/keeping-your-account-and-data-secure/revoking-your-credentials"},"children":[{"type":"text","value":"Revoking your credentials"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-revoked-by-a-third-party","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-revoked-by-a-third-party"},"children":[{"type":"text","value":"Token revoked by a third party"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To prevent unauthorized access using exposed tokens, GitHub recommends token revocation to ensure that a token can no longer be used to authenticate to GitHub. The credential revocation API supports revoking the following token types:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ul","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Personal access tokens (classic) with the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ghp_"}]},{"type":"text","value":" prefix"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"Fine-grained personal access tokens with the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"github_pat_"}]},{"type":"text","value":" prefix"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"OAuth app tokens with the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"gho_"}]},{"type":"text","value":" prefix"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"GitHub App user-to-server tokens with the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ghu_"}]},{"type":"text","value":" prefix"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"GitHub App refresh tokens with the "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"ghr_"}]},{"type":"text","value":" prefix"}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"If you find any of these tokens leaked on GitHub or elsewhere, you can submit a revocation request through the REST API. See "},{"type":"element","tagName":"a","properties":{"href":"/en/rest/credentials/revoke#revoke-a-list-of-credentials"},"children":[{"type":"text","value":"Revocation"}]},{"type":"text","value":" for the complete and authoritative list of supported token types."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"When a valid token is submitted to GitHub's credential revocation API, the token will be automatically revoked. This API allows a third party to revoke a token they do not own and helps protect the data associated with this token from unauthorized access, limiting the impact of exposed tokens."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"To encourage reports and ensure that exposed tokens can be quickly and easily revoked, we do not require authentication for the revocation requests submitted through the API. As a result, GitHub is unable to provide further information about the source of the reported token."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-revoked-by-the-oauth-app","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-revoked-by-the-oauth-app"},"children":[{"type":"text","value":"Token revoked by the OAuth app"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The owner of an OAuth app can revoke an account's authorization of their app, this will also revoke any tokens associated with the authorization. For more information about revoking authorizations of your OAuth app, see "},{"type":"element","tagName":"a","properties":{"href":"/en/rest/apps/oauth-applications#delete-an-app-authorization"},"children":[{"type":"text","value":"REST API endpoints for OAuth authorizations"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"OAuth app owners can also revoke individual tokens associated with an authorization. For more information about revoking individual tokens for your OAuth app, see "},{"type":"element","tagName":"a","properties":{"href":"/en/rest/apps/oauth-applications#delete-an-app-token"},"children":[{"type":"text","value":"REST API endpoints for OAuth authorizations"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope"},"children":[{"type":"text","value":"Token revoked due to excess of tokens for an OAuth app with the same scope"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"There is a limit of ten tokens that are issued per user/application/scope combination, and a rate limit of ten tokens created per hour. If an application creates more than ten tokens for the same user and the same scopes, GitHub revokes one of the existing tokens with the same user/application/scope combination, chosen in this order:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"ol","properties":{},"children":[{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"The oldest token that has never been used and that was created more than one minute ago. Tokens created within the last minute are usually protected, so that an application has time to use a token it has just created."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If there is no such token, but at least one token has been used, the token that was least recently used."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"li","properties":{},"children":[{"type":"text","value":"If no token has ever been used, the oldest token, even if it was created within the last minute."}]},{"type":"text","value":"\n"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Hitting the hourly rate limit will not revoke your oldest token. Instead, it will trigger a re-authorization prompt within the browser, asking the user to double check the permissions they're granting your app. This prompt is intended to give a break to any potential infinite loop the app is stuck in, since there's little to no reason for an app to request ten tokens from the user within an hour."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"user-token-expired-due-to-github-app-configuration","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#user-token-expired-due-to-github-app-configuration"},"children":[{"type":"text","value":"User token expired due to GitHub App configuration"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"User access tokens created by a GitHub App will expire after eight hours by default, and then must be regenerated using the included refresh token. Owners of GitHub Apps can optionally configure these tokens to never expire instead, but this is not recommended due to the security implications. For more information about configuring your GitHub App's user access tokens, see "},{"type":"element","tagName":"a","properties":{"href":"/en/apps/maintaining-github-apps/activating-optional-features-for-github-apps"},"children":[{"type":"text","value":"Activating optional features for GitHub Apps"}]},{"type":"text","value":"."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"token-revoked-by-enterprise-owners","tabIndex":-1},"children":[{"type":"element","tagName":"a","properties":{"className":["heading-link"],"href":"#token-revoked-by-enterprise-owners"},"children":[{"type":"text","value":"Token revoked by enterprise owners"},{"type":"element","tagName":"span","properties":{"className":["heading-link-symbol"],"ariaHidden":"true"},"children":[]}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Enterprise owners on GitHub Enterprise Cloud can revoke SSO authorizations or delete credentials for individual users or in bulk when responding to security incidents. Revoking SSO authorizations removes access to SSO-protected organization resources, while deleting credentials (available for Enterprise Managed Users only) removes the credentials entirely."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"For more information, see "},{"type":"element","tagName":"a","properties":{"href":"/en/enterprise-cloud@latest/admin/managing-iam/respond-to-incidents/revoke-authorizations-or-tokens"},"children":[{"type":"text","value":"Revoking SSO authorizations or deleting credentials in your enterprise"}]},{"type":"text","value":"."}]}],"data":{"quirksMode":false}},"miniTocItems":[{"contents":{"href":"#token-revoked-after-reaching-its-expiration-date","title":"Token revoked after reaching its expiration date"}},{"contents":{"href":"#token-revoked-when-pushed-to-a-public-repository-or-public-gist","title":"Token revoked when pushed to a public repository or public gist"}},{"contents":{"href":"#token-expired-due-to-lack-of-use","title":"Token expired due to lack of use"}},{"contents":{"href":"#token-revoked-by-the-user","title":"Token revoked by the user"}},{"contents":{"href":"#token-revoked-by-a-third-party","title":"Token revoked by a third party"}},{"contents":{"href":"#token-revoked-by-the-oauth-app","title":"Token revoked by the OAuth app"}},{"contents":{"href":"#token-revoked-due-to-excess-of-tokens-for-an-oauth-app-with-the-same-scope","title":"Token revoked due to excess of tokens for an OAuth app with the same scope"}},{"contents":{"href":"#user-token-expired-due-to-github-app-configuration","title":"User token expired due to GitHub App configuration"}},{"contents":{"href":"#token-revoked-by-enterprise-owners","title":"Token revoked by enterprise owners"}}],"permissions":"","includesPlatformSpecificContent":false,"includesToolSpecificContent":false,"defaultPlatform":"","defaultTool":"","product":"","currentJourneyTrack":null,"detectedPlatforms":[],"detectedTools":[],"allTools":{"vscode":"Visual Studio Code","jetbrains":"JetBrains IDEs","visualstudio":"Visual Studio","cli":"GitHub CLI","webui":"Web browser","eclipse":"Eclipse","desktop":"Desktop","vimneovim":"Vim/Neovim","azure_data_studio":"Azure Data Studio","xcode":"Xcode","curl":"curl","javascript":"JavaScript","windowsterminal":"Windows Terminal","codespaces":"Codespaces","api":"API","mobile":"Mobile","copilotcli":"Copilot CLI","bash":"Bash","powershell":"PowerShell","skillsets":"Skillsets","agents":"Agents","jetbrains_beta":"JetBrains IDEs (Beta)","github_mobile":"GitHub Mobile","ides":"IDEs","importer_cli":"GitHub Enterprise Importer CLI"},"supportPortalVaIframeProps":{"supportPortalUrl":"https://support.github.com","vaFlowUrlParameter":""},"currentLayout":"default","currentPath":"/en/authentication/keeping-your-account-and-data-secure/token-expiration-and-revocation"}},"languagesContext":{"languages":{"en":{"name":"English","code":"en"},"es":{"name":"Spanish","code":"es","nativeName":"Español"},"ja":{"name":"Japanese","code":"ja","nativeName":"日本語"},"pt":{"name":"Portuguese","code":"pt","nativeName":"Português do Brasil"},"zh":{"name":"Simplified Chinese","code":"zh","hreflang":"zh-Hans","nativeName":"简体中文"},"ru":{"name":"Russian","code":"ru","nativeName":"Русский"},"fr":{"name":"French","code":"fr","nativeName":"Français"},"ko":{"name":"Korean","code":"ko","nativeName":"한국어"},"de":{"name":"German","code":"de","nativeName":"Deutsch"}}},"__N_SSP":true},"page":"/[versionId]/[productId]/[...restPage]","query":{"versionId":"free-pro-team@latest","productId":"authentication","restPage":["keeping-your-account-and-data-secure","token-expiration-and-revocation"]},"buildId":"37rneBrFhguD_pCpKvY4P","isFallback":false,"isExperimentalCompile":false,"gssp":true,"appGip":true,"locale":"en","locales":["en","es","ja","pt","zh","ru","fr","ko","de"],"defaultLocale":"en","scriptLoader":[]}</script></body></html>