Using OAuth 2.0 for Google (Youtube) API with Ionic

Hi

I am trying to implement Google’s YouTube API V3 on my Ionic application but I cannot.

So far I have tried 2 different methods without success:

  1. Use Google APIs Node.js Client. I followed this tutorial: https://github.com/googleapis/google-api-nodejs-client

However it does not work and according to my research it was not intended for Ionic.

  1. Create a URL as shown here: https://developers.google.com/youtube/v3/guides/auth/client-side-web-apps#oauth-2.0-endpoints

I then open it with InAppBrowser, the authorization process does this by opening the browser and it retrieves the access token, however, it requires a “Redirect URL” and I have to put a URL, I can’t find no way to return to the application WITH the token which has been added in the URL.

Maybe neither is right, I don’t know.

Any ideas ?
Thank you

  1. Use OAuth 2.0 for Mobile & Desktop Apps : https://developers.google.com/youtube/v3/guides/auth/installed-apps#android

But i don’t understant Custom URI scheme only my id app doesnt work