dist/oauth-ng.js
function(params){
    service.token = service.token || {};      // init the token
    angular.extend(service.token, params);      // set the access token params
    setTokenInSession();                // save the token into the session
    setExpiresAtEvent();                // event to fire when the token expires

    return service.token;
  }
function(params){
    service.token = service.token || {};      // init the token
    angular.extend(service.token, params);      // set the access token params
    setTokenInSession();                // save the token into the session
    setExpiresAtEvent();                // event to fire when the token expires

    return service.token;
  }
function ( params ) { service . token = service . token || { } ; // init the token angular . extend ( service . token , params ) ; // set the access token params setTokenInSession ( ) ; // save the token into the session setExpiresAtEvent ( ) ; // event to fire when the token expires return service . token ; }
Set the access token.

@param params
@returns {*|{}}
Set the access token .