public void refresh ( OAuthJSONAccessTokenResponse token ) { this . accessToken = token . getAccessToken ( ) ; this . expiration = currentTimeSeconds ( ) + token . getExpiresIn ( ) ; this . expirationSpan = token . getExpiresIn ( ) ; this . scopes = new RedditTokenCompleteScope ( token . getScope ( ) ) ; this . tokenType = token . getParam ( PARAM_TOKEN_TYPE ) ; }
Refresh this reddit token with data received from the new token .