Added prompting to auth function.