Add 'ref' param to auth request