updated auth code