The GitHub app expiring user tokens January 2027 change raises a practical release question: what happens when a connection can no longer use its current token? A successful sign-in does not answer that question. Your app also needs a clear route through renewal failure and withdrawn authorisation.
This guide provides four fictional cases, a test-coverage matrix and a decision map. The observed-result fields in the four CSV tools are blank. These are proposed checks for learners and reviewers, not results from a deployed integration.
What the January 2027 announcement covers
The 4 December GitHub announcement applies to newly registered GitHub Apps and OAuth apps from 5 January 2027 on GitHub.com and GHE.com. It removes the registration option for non-expiring user tokens. Previously issued tokens are unaffected. Do not turn that registration-date rule into a claim that every existing connection stops working on the same day.
The announcement gives new-app user access tokens an eight-hour lifetime. Therefore, check your authentication library before registration. A token that worked during a short demonstration may expire during a longer session. First record the app type, host, registration date and library version; then design the failure cases.
Separate access expiry from the renewal mechanism
An access token permits the authorised API request. A refresh token supports getting replacement credentials. Keep their purposes separate when explaining a failure to a learner. The GitHub App refresh documentation describes an eight-hour access token and a six-month refresh token. It also says that using a refresh token replaces the pair and invalidates the previous credentials.
That behaviour gives the exercise a useful handoff check: does the app keep the replacement pair, or accidentally try the old refresh token again? Write the expected state before implementation. Next, test a rejected renewal without recording any real credentials. Use placeholders such as FAKE_ACCESS_A and FAKE_REFRESH_A in your notes.
The OAuth app authorisation guide separately documents the refresh flow and account identity checks. Follow the guidance for the app type you actually use. The worksheets do not replace either implementation guide, and they do not claim that all SDKs already implement the announced behaviour.
GitHub app expiring user tokens January 2027: four cases
| Fictional condition | Planned response | Evidence to retain |
|---|---|---|
| Token valid | Make the authorised request | Expected result and account identity |
| Expired; refresh succeeds | Store replacement pair; continue | Redacted state transition and final response |
| Expired; refresh rejected | Stop repeated automatic attempts | Explained reconnect state |
| Authorisation revoked | Respect disconnection | No continued access without new authorisation |

For the valid-token case, start with a small read-only task in a disposable integration you control. Define the expected account and output. If the app already reads the wrong account, a working token is not a successful result. Retain the same task for the renewal case so the comparison stays meaningful.
For successful renewal, capture the transition without copying secrets into screenshots or logs. Check that the request returns the intended result after replacement. Also check that the new credentials are stored consistently. If several requests can renew at once, give the reviewer an explicit concurrency case rather than assuming a single-request demonstration covers it.
A rejected refresh needs an honest user message
Imagine a learner opens a saved project and the refresh attempt is rejected. A message that only says “Try again” hides the next decision. Instead, explain that the GitHub connection needs attention and provide a deliberate reconnect route. Keep unsaved project work intact while the user decides what to do.
A rejected refresh is not, by itself, proof that the user revoked access. Record the actual response and classify it using the relevant documentation. However, the app should not keep sending the same failed renewal indefinitely. Give retries a controlled boundary and avoid presenting an unconfirmed request as a successful action.

Respect the revoked-authorisation case
Now change the premise: the user deliberately withdrew the app’s authorisation. The expected product behaviour is a disconnected state. A background renewal loop should not conceal that decision or imply that access continues. Reconnection must be a clear user choice through the supported authorisation flow.
In the exercise, use only an app and test account you are authorised to control. Save a redacted record of the state, expected message and observed result. Then confirm that the interface has not mixed the old user’s context with another signed-in account. A visually successful sign-in screen is not enough evidence of the intended identity.
Download the test records
Use the matrix to agree the four cases, then fill the blank ledger as you test. The release checklist assigns evidence and ownership without inventing a result. Keep the source register alongside any reused graphic so the January registration rule remains attached to its scope.
- Four-state planned test matrix (CSV)
- Blank integration evidence ledger (CSV)
- Release and renewal checklist (CSV)
- Primary sources and claim boundaries (CSV)
For another integration boundary, see our npm staged publishing checklist. Both exercises separate a permitted action from evidence that the intended outcome actually happened.
Tech Consulting Tailored to Your Coding Journey
Get expert guidance in coding with a personalized consultation. Receive unique, actionable insights delivered in 1-3 business days.
Get StartedMethod and limits
Research checked on 5 December 2026. We read GitHub’s announcement and the two implementation guides, then designed four fictional test conditions. No app registration, token exchange, revocation or SDK compatibility test was performed for this article. Blank observations must stay blank until an actual test supplies evidence.
Suggested citation: Learn Coding USA, “GitHub Apps: What Happens When a User Token Expires?”, 5 December 2026. Retain the planned-test qualification and the new-registration boundary when reusing the graphics or worksheets.
