AuthGuard for Ionic Angular app

We have wrapped out Angular application with Ionic framework. In the Angular web app we were using AuthGuard from auth0/angular library. In the Ionic however it gives us unwanted behavior because when the user is not logged in the AuthGuard switches to the browser to authenticate instead of opening the browser within the native (ionic) app.
Does anyone have an example of a guard class that we could use in our routing module?