Note that there are some explanatory texts on larger screens.

plurals
  1. POrefreshToken is null
    primarykey
    data
    text
    <p>I used DREdit app's Oauth code to get accessToken and refreshToken for my app and i am getting the accessToken but refreshToken is coming null always. </p> <p>I tried to print the values in the code which comes like below</p> <pre><code>authorization URL:https://accounts.google.com/o/oauth2/auth?access_type=offline&amp;approval_prompt=force&amp;client_id=651991573332.apps.googleusercontent.com&amp;redirect_uri=http://www.sakshum.org/GoogleOauth&amp;response_type=code&amp;scope=https://www.googleapis.com/auth/drive.file%20https://www.googleapis.com/auth/userinfo.email%20https://www.googleapis.com/auth/userinfo.profile </code></pre> <p>This code already has access_type=offline which I found not having in the url was the cause in some cases. Please advise what else could be wrong here.</p> <p>The log prints as follows on appEngine</p> <pre><code>[s~sakshumweb-hrd/3.368699522239285323].&lt;stdout&gt;: Code:4/XQ1sR1Pu5VHDqGbG9iJO10bXVCCE.Qn-L1XwrBVYaEnp6UAPFm0EmSoCXfwI W 2013-07-10 20:20:16.294 com.google.api.client.googleapis.services.AbstractGoogleClient &lt;init&gt;: Application name is not set. Call Builder#setApplicationName. I 2013-07-10 20:20:16.536 [s~sakshumweb-hrd/3.368699522239285323].&lt;stdout&gt;: id:113470899999229420779 I 2013-07-10 20:20:17.936 [s~sakshumweb-hrd/3.368699522239285323].&lt;stdout&gt;: access token:ya29.AHES6ZSP7MXaaUhMz4RO7Jm3Zkh_s1zUxJyzW_6IvfADaQ I 2013-07-10 20:20:17.936 [s~sakshumweb-hrd/3.368699522239285323].&lt;stdout&gt;: refresh token:null </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload