Latest attempt for auth working at the client side.