mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2025-12-31 00:20:04 +01:00
What was previously called Token is now TokenInfo and is merely an internal implementation detail. The publicly visible type is now called AccessToken and differs from TokenInfo by not including the refresh token. This makes it a smaller type for users to pass around as well as reducing the ways that a refresh token may be leaked. Since the Authenticator is responsible for refreshing the tokens there isn't any reason users should need to concern themselves with refresh tokens.