Fix auth key generation.