1 Reply Latest reply on Nov 3, 2014 8:49 AM by kenfinni

    Token expiration and update

    artkoenig

      Hi,

       

      how do I properly handle the access token expiration. Currently I wrap all my requests in "updateToken":

       
                          LiveOak.auth.updateToken().success(
                               function() {
                                    LiveOak.update(url, data, {
                                         success: ...,
                                         error: ...
                                    });
                               });

       

      if I don't call updateToken, my requests fail if the token is expired. Why do LiveOak not handle this internally?

       

      Best regards,

      Artjom