Fixes to auth file for app authentication