restangular icon indicating copy to clipboard operation
restangular copied to clipboard

Setting Default Request Params

Open casoetan opened this issue 10 years ago • 1 comments

@mgonto how do I update the default request params after a login, without reloading the page? I'm authorizing via username and password, but on receipt of the session access token, setting the default request parameter to that access token doesn't work.

Thanks

casoetan avatar Sep 09 '14 09:09 casoetan

setDefaultRequestParams:

Restangular.setDefaultRequestParams({token: access_token})

daviesgeek avatar Jun 18 '16 00:06 daviesgeek