Back to news
devops Priority 4/5 8/24/2026, 11:05:12 AM

GitHub Introduces Multiple Redirect URIs and Refresh Tokens for OAuth Applications

GitHub Introduces Multiple Redirect URIs and Refresh Tokens for OAuth Applications

GitHub has rolled out critical security and usability updates for OAuth Applications. Developers can now opt into using short-lived access tokens that expire after eight hours, accompanied by a refresh token valid for six months. This shift away from indefinite-lifetime access tokens reduces the impact of potential token leakage and aligns GitHub OAuth Apps with modern security standards.

Related tools

Recommended tools for this topic

These picks prioritize high-intent tools relevant to this topic. Some links may include partner or affiliate tracking.

#github#oauth#security#api

Comparison

AspectBefore / AlternativeAfter / This
Access token lifetimeIndefinite lifetime8 hours (expires automatically)
Token renewalRequires manual or programmatic re-authorization flowAutomatic rotation using a 6-month refresh token
Redirect URIs per appSingle redirect URI limitUp to 10 redirect URIs permitted

Action Checklist

  1. Verify that your OAuth SDK supports refresh token rotation flows Do not enable short-lived tokens in production until client SDKs are verified.
  2. Opt in to short-lived tokens in your GitHub OAuth App settings page New OAuth applications will have this behavior enabled by default.
  3. Consolidate development and production apps by configuring multiple redirect URIs You can add up to 10 distinct URIs to handle staging and local environments.
  4. Update token storage logic to handle the immediate invalidation of old refresh tokens Using a refresh token immediately invalidates the previous token pair.

Source: GitHub Changelog

This page summarizes the original source. Check the source for full details.

Related