Property token does not exist on type Object Try parsing it as, this.token = data['token']; this.storage.set('token', this.token);