public async Task SetAuthenticatorKeyAsync(UserData user, string key) { await _cacheContext.AddAsync(user.Id, _encrypter.EncryptString(key, user.KeyPassword, user.KeySalt)); }