Pubstwo 889 Client side authentication functionality done

Actually, this was totally an error on my part. I assumed "params" was a key used by the function. I will remove that extra level of wrapping.