@attus/ionic-storage

Ionic Storage Service

Usage no npm install needed!

<script type="module">
  import attusIonicStorage from 'https://cdn.skypack.dev/@attus/ionic-storage';
</script>

README

Ionic Storage

Cache and Token Service for Ionic-Angular

Usage in Service:

constructor(private tokenService: IonicTokenService)

this.tokenService.getRefreshToken().then(token => {});

this.tokenService.setRefreshToken(tokenString);

this.tokenService.deleteRefreshToken();

constructor(private cacheService: IonicCacheService)

this.cacheService.set(key, value, expire);

this.cacheService.get(key).then(value => {});