# Hot to get refresh token using auth0 social login api?

**URL:** <https://community.auth0.com/t/hot-to-get-refresh-token-using-auth0-social-login-api/7087>\
**Category:** Get Help\
**Tags:** tier1, refresh\_token, refresh-tokens, social-connections, login\
**Created:** [June 15, 2017, 1:48pm UTC](https://community.auth0.com/t/hot-to-get-refresh-token-using-auth0-social-login-api/7087 "2017-06-15T13:48:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ayush.gupta](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ayush.gupta](https://community.auth0.com/u/ayush.gupta)\
**Post date:** [June 15, 2017, 1:48pm UTC](https://community.auth0.com/t/hot-to-get-refresh-token-using-auth0-social-login-api/7087/1 "2017-06-15T13:48:25Z")

</div>

I am using this api “[https://9zestapp.auth0.com/oauth/access\_token](https://9zestapp.auth0.com/oauth/access_token)” for social login but I am not able to get reresh token in the response.

While in username password login we get refresh token from auth0.  
So how to get refresh token in social login case?

---

<div class="post-metadata">

**Author:** ![paulimar.angulo](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@paulimar.angulo](https://community.auth0.com/u/paulimar.angulo)\
**Post date:** [June 15, 2017, 7:47pm UTC](https://community.auth0.com/t/hot-to-get-refresh-token-using-auth0-social-login-api/7087/2 "2017-06-15T19:47:33Z")

</div>

What type of application are you developing? Is it a “Single Page App” or a " Web App" or Native?

Each type of client has their own OAuth flow to be used, and depending on this, has a way to get their refresh token.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [June 23, 2017, 10:39pm UTC](https://community.auth0.com/t/hot-to-get-refresh-token-using-auth0-social-login-api/7087/3 "2017-06-23T22:39:38Z")

</div>

To my knowledge the `/oauth/access_token` endpoint does not allow you to obtain a refresh token in the response. Additionally, have in mind that the endpoint is question is considered a legacy endpoint and you should do social authentication through a browser-based flow that goes through Auth0 and which would indeed allow you to obtain a refresh token. Check the note available in the [docs for this endpoint](https://auth0.com/docs/api/authentication#social-with-provider-s-access-token) for some additional relevant information.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/hot-to-get-refresh-token-using-auth0-social-login-api/7087/4 "2018-03-02T05:54:40Z")

</div>


