nativescript-oauth2
Advanced tools
Comparing version 1.1.2 to 1.1.3
{ | ||
"name": "nativescript-oauth2", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "OAuth 2 login for NativeScript.", | ||
@@ -5,0 +5,0 @@ "main": "oauth", |
@@ -103,3 +103,3 @@ # OAuth 2 Plugin for NativeScript | ||
If you are using Angular, then open your `main.ts` file. You will need to explicitly use frames, so make sure to pass an options object to `platformNativeScriptDynamic` with the `createFrameOnBootstrap` flag set to `true`, like this. | ||
If you are using Angular AND you are NOT using `<page-router-outlet`, you'll need to enable frames in order for the plugin to open up a new native page with a login screen. To do that open your `main.ts` file. You will need to explicitly use frames, so make sure to pass an options object to `platformNativeScriptDynamic` with the `createFrameOnBootstrap` flag set to `true`, like this. | ||
@@ -113,2 +113,4 @@ ```typescript | ||
You don't need to do this if you already have `<page-router-outlet>` in your component. | ||
then add add the registration code below somewhere before you call login, most likely in your Auth service, as in the demo-angular project. | ||
@@ -115,0 +117,0 @@ |
95740
324