Fix oauth2 renew token

When getting an oauth token, we must use code or refresh_token but not twice.
This commit is contained in:
Jeremie Dokime
2015-12-07 11:18:59 +01:00
parent 30fe7400f9
commit 9b17048882
@@ -164,7 +164,7 @@ server for requests. It can be used for the optional"scope" parameters for Face
code=code,
grant_type='authorization_code'
)
if refresh_token:
elif refresh_token:
data.update(
refresh_token=refresh_token,
grant_type='refresh_token'