angular-auth-oidc-client
Advanced tools
Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "angular-auth-oidc-client", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "An OpenID Connect Implicit Flow client for Angular", | ||
@@ -5,0 +5,0 @@ "main": "./bundles/angular-auth-oidc-client.umd.js", |
@@ -18,7 +18,24 @@ # angular-auth-oidc-client | ||
Add the npm package to your package.json | ||
```typescript | ||
Navigate to the level of your package.json and type | ||
``` javascript | ||
npm install angular-auth-oidc-client --save | ||
``` | ||
or with yarn | ||
``` javascript | ||
yarn add angular-auth-oidc-client | ||
``` | ||
or you can add the npm package to your package.json | ||
``` javascript | ||
"angular-auth-oidc-client": "1.0.3" | ||
``` | ||
and type | ||
``` javascript | ||
npm install | ||
``` | ||
## Using in the angular application | ||
@@ -119,3 +136,14 @@ | ||
## Storage | ||
For example, you can get angular-auth-oidc-client to store access tokens in Cookies by downloading and adding Cookie-Storage to your project, creating a factory method to provide it: | ||
let cookieStorageFactory = () => { | ||
return new CookieStorage(); | ||
} | ||
..and then adding it to the providers array in @NgModule: | ||
{ provide: Storage, useFactory: cookieStorageFactory } | ||
## Example using: | ||
@@ -122,0 +150,0 @@ |
588705
159