userSession->getUser(); $codes = $this->storage->createCodes($user); return new JSONResponse([ 'codes' => $codes, 'state' => $this->storage->getBackupCodesState($user), ]); } }