Authentication keypair creation and client cookie sending