README.md in omniauth-google-oauth2-0.2.10 vs README.md in omniauth-google-oauth2-0.3.0

- old
+ new

@@ -65,11 +65,11 @@ * `image_size`: The size of the user's profile picture. The image returned will have width equal to the given value and variable height, according to the `image_aspect_ratio` chosen. Additionally, a picture with specific width and height can be requested by setting this option to a hash with `width` and `height` as keys. If only `width` or `height` is specified, a picture whose width or height is closest to the requested size and requested aspect ratio will be returned. Defaults to the original width and height of the picture. * `name`: The name of the strategy. The default name is `google_oauth2` but it can be changed to any value, for example `google`. The OmniAuth URL will thus change to `/auth/google` and the `provider` key in the auth hash will then return `google`. -* `access_type`: Defaults to `offline`, so a refresh token is sent to be used when the user is not present at the browser. Can be set to `online`. Note that if you need a refresh token, google requires you to also to specify the option `prompt: 'consent'`, which is not a default. +* `access_type`: Defaults to `offline`, so a refresh token is sent to be used when the user is not present at the browser. Can be set to `online`. More about [offline access](https://developers.google.com/identity/protocols/OAuth2WebServer#offline) * `hd`: (Optional) Limit sign-in to a particular Google Apps hosted domain. More information at: https://developers.google.com/accounts/docs/OpenIDConnect#hd-param * `skip_jwt`: Skip JWT processing. This is for users who are seeing JWT decoding errors with the `iat` field. @@ -243,11 +243,11 @@ client_id: '000000000000.apps.googleusercontent.com', scope: 'email profile' }, function(response) { if (response && !response.error) { // google authentication succeed, now post data to server and handle data securely - jQuery.ajax({type: 'POST', url: "/auth/google_oauth2/callback", dataType: 'json', data: response, - success: function(json) { + jQuery.ajax({type: 'POST', url: "/auth/google_oauth2/callback", data: response, + success: function(data) { // response from server } }); } else { // google authentication failed