ngx-restangular icon indicating copy to clipboard operation
ngx-restangular copied to clipboard

set default headers after login

Open phken91 opened this issue 5 years ago • 1 comments

Hi, new to ngx-restangular would like to ask, can we set the default headers (etc: {authorization: 'Bearer xxx'}) after user login?

for the example provide in README.md, it initial default headers in app.module.ts

thanks for advices

phken91 avatar May 29 '20 10:05 phken91

Hello lordzpipo, restangular-fixed

You can use setDefaultConfig() in each and every page where you've initialized Restangular.

I solved this issue. I hope this will help you.

iamsrujal avatar Sep 15 '20 20:09 iamsrujal