oAuth2 and Webintent

I develop an authentication system with oAuth on my ionic app. When a user click on login button, a new window is called and it displays an intention to authorize generation of token like this:

This token (regenerate regularly) allows to interact with my backend API.

authWindow = window.open(
    URI + 'oauth/authorize?' + serialize(options), 

I search a tip to listen this window when it’s validate. From what I’ve seen on the forums, it would create a protocol and talk with a webintent. I found this plugin. I want to know if my approach is good.

Thank you for your help.