Minor refactoring, generate_refresh_token is renamed to access_type with possible values of offline and online.