Skip to content

attus74/ionic-storage

Repository files navigation

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 => {});