# How to solve the Promise returned by the Ionic storage?

**URL:** <https://forum.ionicframework.com/t/how-to-solve-the-promise-returned-by-the-ionic-storage/159990>\
**Category:** ionic-v3\
**Created:** [March 26, 2019, 10:37am UTC](https://forum.ionicframework.com/t/how-to-solve-the-promise-returned-by-the-ionic-storage/159990 "2019-03-26T10:37:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ioclaudio](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ioclaudio/32/126373_2.png) [@ioclaudio](https://forum.ionicframework.com/u/ioclaudio)\
**Post date:** [March 26, 2019, 10:37am UTC](https://forum.ionicframework.com/t/how-to-solve-the-promise-returned-by-the-ionic-storage/159990/1 "2019-03-26T10:37:24Z")

</div>

Hi,  
I’m trying to read a token from the Ionic storage with a “get”.  
I know it returns a Promise but I’ve defined this asynchronous method:

```auto
  async getToken() {
    return await this.storage.get('TOKEN_KEY');
  }

  getWsHeader() {
    let tempToken;
    tempToken = this.getToken();
    console.log('@@@@@@@ TOKEN:', tempToken);

```

When I run this code the variable “tempToken” is not a string but it is still a Promise.  
How is it possible?  
This is what I see in the Chrome console about “tempToken”:  
`ZoneAwarePromise { __zone_symbol__ state: null, __zone_symbol__ value: Array(0)}`

I’m using this version of Ionic:

```auto
Ionic:
   ionic (Ionic CLI) : 4.12.0
   Ionic Framework : @ionic/angular 4.1.2
   @angular-devkit/build-angular : 0.13.6
   @angular-devkit/schematics : 7.2.4
   @angular/cli : 7.3.6
   @ionic/angular-toolkit : 1.4.1
System:
   NodeJS : v10.15.1
   npm : 6.7.0
   OS : Windows 10

```

Thank you very much

cld
