When i debug via Chrom dev tools, data object is having the value for redirecturl but when i assigned the promise value to the controller it says "undefined". what i a