JWT and Ionic

this is a web app that is being converted to ionic ,
i call the server and get a jwt bearer , and i save it ( in the web app) in local storage.
and i get 401 unauthriozed error for some reason , how to over come this? is there a different way in ionic to save the token and pass it along?

Sending the JWT token with the request should be the same as did before in your web app. There is nothing special now that you are using Ionic.