# So is Auth0 Broken for Ionic Latest (3 or 4) mainly @ionic/storage

**URL:** <https://community.auth0.com/t/so-is-auth0-broken-for-ionic-latest-3-or-4-mainly-ionic-storage/6156>\
**Category:** Get Help\
**Tags:** storage, ionic\
**Created:** [April 7, 2017, 11:35pm UTC](https://community.auth0.com/t/so-is-auth0-broken-for-ionic-latest-3-or-4-mainly-ionic-storage/6156 "2017-04-07T23:35:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![shawn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shawn/32/6525_2.png) [@shawn](https://community.auth0.com/u/shawn)\
**Post date:** [April 7, 2017, 11:35pm UTC](https://community.auth0.com/t/so-is-auth0-broken-for-ionic-latest-3-or-4-mainly-ionic-storage/6156/1 "2017-04-07T23:35:10Z")

</div>

All the examples seem to have broken @ionic/storage

```
let storage: Storage = new Storage();

export function getAuthHttp(http) {
    return new AuthHttp(new AuthConfig({
        globalHeaders: {'Accept': 'application/json'}],
        tokenGetter: (() => storage.get('id_token'))
    }), http);
}

```

which gives `Supplied parameters do not match any signature of call target.`

---

<div class="post-metadata">

**Author:** ![shawn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shawn/32/6525_2.png) [@shawn](https://community.auth0.com/u/shawn)\
**Post date:** [April 7, 2017, 11:36pm UTC](https://community.auth0.com/t/so-is-auth0-broken-for-ionic-latest-3-or-4-mainly-ionic-storage/6156/2 "2017-04-07T23:36:29Z")

</div>

error refers to the first line `let storage: Storage = new Storage();`

---

<div class="post-metadata">

**Author:** ![shawn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/shawn/32/6525_2.png) [@shawn](https://community.auth0.com/u/shawn)\
**Post date:** [April 8, 2017, 12:06am UTC](https://community.auth0.com/t/so-is-auth0-broken-for-ionic-latest-3-or-4-mainly-ionic-storage/6156/3 "2017-04-08T00:06:53Z")

</div>

ok I was able to use it by moving my code to a **separate file** ( I just put it in my AuthService)  
this **will not work in app.module.ts**

then appending it in this fashion

```
export function AuthHttpServiceFactory(http: Http, options: RequestOptions) {
    let _storage = new Storage({});
    return new AuthHttp(new AuthConfig({
        noJwtError: true,
        tokenGetter: (() => _storage.get('id_token')),
        globalHeaders: {'Content-Type':'application/json'}],
    }), http, options);
}

```

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/so-is-auth0-broken-for-ionic-latest-3-or-4-mainly-ionic-storage/6156/4 "2018-03-02T05:53:10Z")

</div>


