added angular compatible auth