In my ionic app I’m using ngCordovaOauth to authenticate users with their gmail account. This works fine, but I now also want to obtain the refresh_token
. However, as far as I now understand ngCordovaOauth uses the Implicit grant type of OAuth 2.0, which per the specification is meant for “clients implemented in a browser using a scripting language such as JavaScript”. With this flow the client is directly issued an Access Token, and only that. I think this means that I cannot use ngCordovaOauth to get the refresh_token
(but please correct me if I’m wrong).
Does anybody know any way how I can get the refresh_token
from the gmail api? All tips are welcome!