Change authentication flow