Update Authentication in for scala