parent.auth || {} parent.auth || {} means that if parent.auth undefined, null or false in the logical case, then a new empty object will be initialized and assigned.
or you can understand it as:
var auth; if(parent.auth){ auth=parent.auth; } else { auth={}; }
source share